Created
January 13, 2015 15:36
-
-
Save justinobney/6852713345453e94f10b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $provide.decorator('$exceptionHandler', [ | |
| '$delegate', '$window', '$log', '$stateParams', | |
| function($delegate, $window, $log, $stateParams) { | |
| return function(exception, cause) { | |
| if ($window.trackJs) { | |
| $log.debug('$exceptionHandler ::: $stateParams => ', angular.toJson($stateParams)); | |
| $window.trackJs.track(exception); | |
| } | |
| $delegate(exception, cause); | |
| }; | |
| } | |
| ]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment