diff --git a/app/scripts/services/error.js b/app/scripts/services/error.js index 2e988ec13..daf803d38 100644 --- a/app/scripts/services/error.js +++ b/app/scripts/services/error.js @@ -1,8 +1,11 @@ +import { Rollbar } from 'scripts/errorNotify.js'; + angular.module('confRegistrationWebApp').factory('error', function ($log) { return { // Generate a promise catch handler that generates an Error object from an HTTP response object errorFromResponse: function (defaultErrorMessage) { return function (res) { + Rollbar.error(defaultErrorMessage, res); $log.error(res); // Extract the error from the payload