Ignore some transition errors.

This commit is contained in:
FelisCatus 2017-08-19 15:27:06 -04:00
parent 19e556d1a9
commit a109fa1e68

View File

@ -66,6 +66,14 @@ angular.module('omega').config ($stateProvider, $urlRouterProvider,
controller: 'AboutCtrl'
)
angular.module('omega').factory '$exceptionHandler', ($log) ->
return (exception, cause) ->
return if exception.message == 'transition aborted'
return if exception.message == 'transition superseded'
return if exception.message == 'transition prevented'
return if exception.message == 'transition failed'
$log.error(exception, cause)
angular.module('omega').factory 'omegaDebug', ($window, $rootScope,
$injector) ->
omegaDebug = $window.OmegaDebug ? {}