handle bundle errors