From 8dbaea59b4e8489667258a9f381d638d68ef1838 Mon Sep 17 00:00:00 2001 From: jaredevantabor Date: Tue, 6 Dec 2016 09:29:33 -0800 Subject: [PATCH] Using $log for debugging transitionTo errors --- awx/ui/client/src/app.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/awx/ui/client/src/app.js b/awx/ui/client/src/app.js index 9009cc0779..3d23bdcf8f 100644 --- a/awx/ui/client/src/app.js +++ b/awx/ui/client/src/app.js @@ -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();