mirror of
https://github.com/ansible/awx.git
synced 2026-02-28 08:18:43 -03:30
Using $log for debugging transitionTo errors
This commit is contained in:
@@ -385,10 +385,8 @@ var tower = angular.module('Tower', [
|
||||
};
|
||||
$rootScope.$stateParams = $stateParams;
|
||||
|
||||
$state.defaultErrorHandler(function() {
|
||||
// Do not log transitionTo errors. This function,
|
||||
// left empty, will prevent errors being displayed on the
|
||||
// JS console that are caused by ui-router transitions.
|
||||
$state.defaultErrorHandler(function(error) {
|
||||
$log.debug(`$state.defaultErrorHandler: ${error}`);
|
||||
});
|
||||
|
||||
I18NInit();
|
||||
|
||||
Reference in New Issue
Block a user