Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 86df71e

Browse files
committedJan 20, 2017
fix(state): avoid promise.catch() in favor of silenceUncaughtInPromise()
1 parent 3e59dc9 commit 86df71e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/state.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1219,7 +1219,7 @@ function $StateProvider( $urlRouterProvider, $urlMatcherFactory) {
12191219
return $q.reject(error);
12201220
});
12211221

1222-
transition.catch(angular.noop);
1222+
silenceUncaughtInPromise(transition);
12231223
return transition;
12241224
};
12251225

0 commit comments

Comments
 (0)
Please sign in to comment.