From a9c1969aa058cc6a7e79f2acd379c6d0bcd36dbc Mon Sep 17 00:00:00 2001 From: jaredevantabor Date: Tue, 6 Dec 2016 09:13:19 -0800 Subject: [PATCH] adding useful comment to $state.defaultErrorHandler --- awx/ui/client/src/app.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/awx/ui/client/src/app.js b/awx/ui/client/src/app.js index ec6639ce7b..9009cc0779 100644 --- a/awx/ui/client/src/app.js +++ b/awx/ui/client/src/app.js @@ -386,8 +386,9 @@ var tower = angular.module('Tower', [ $rootScope.$stateParams = $stateParams; $state.defaultErrorHandler(function() { - // Do not log transitionTo errors - // $log.debug("transitionTo error: " + error ); + // 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. }); I18NInit();