diff options
| author | pliablepixels <pliablepixels@gmail.com> | 2016-02-05 09:51:38 -0500 |
|---|---|---|
| committer | pliablepixels <pliablepixels@gmail.com> | 2016-02-05 09:51:38 -0500 |
| commit | 2dca00fc8be172f6bed7bbd8cc9b46093f978bea (patch) | |
| tree | 11625bcb6938466e44ff687ee7885c3a6e15157d /www/js/app.js | |
| parent | 6c8009536b71a493ca1416472498fe33f6b4d6a7 (diff) | |
#126 and #155 - I think I finally got it this time
Former-commit-id: 85587badc26f74e31a1a458ca3bdb3fff016968f
Diffstat (limited to 'www/js/app.js')
| -rw-r--r-- | www/js/app.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/www/js/app.js b/www/js/app.js index d847eac9..77bf4d48 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -686,13 +686,16 @@ angular.module('zmApp', [ return (d.promise); }) - .error(function (error) { + .error(function (error, status) { $ionicLoading.hide(); - $rootScope.loggedIntoZm = -1; + //console.log("**** ZM Login FAILED"); - ZMDataModel.zmLog("zmAutologin Error " + JSON.stringify(error), - "error, but not calling auth-error emit"); + + // FIXME: Is this sometimes results in null + + ZMDataModel.zmLog("zmAutologin Error " + JSON.stringify(error) + " and status " + status); // bad urls etc come here + $rootScope.loggedIntoZm = -1; $rootScope.$emit('auth-error', error); d.reject("Login Error"); |
