Skip to content
This repository was archived by the owner on May 26, 2023. It is now read-only.

Commit 86df71e

Browse files
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

Lines changed: 1 addition & 1 deletion
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)