Skip to content

Commit

Permalink
Ignore some transition errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
FelisCatus committed Aug 19, 2017
1 parent 19e556d commit a109fa1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions omega-web/src/omega/app.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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 ? {}
Expand Down

0 comments on commit a109fa1

Please sign in to comment.