A localized error handler for AngularJS