diff --git a/logToServer.js b/logToServer.js index cf11b50..8fc8d47 100644 --- a/logToServer.js +++ b/logToServer.js @@ -20,12 +20,12 @@ angular.module('logToServer', []) JL('Angular').error(msg); } }) -.factory('$exceptionHandler', function () { +.factory('$exceptionHandler', ['$log', function ($log) { return function (exception, cause) { JL('Angular').fatalException(cause, exception); - throw exception; + $log.warn(exception, cause); }; -}) +}]) .factory('logToServerInterceptor', ['$q', function ($q) { var myInterceptor = {