Pass provider with error to error handlers.