diff options
Diffstat (limited to 'www/js/DataModel.js')
| -rw-r--r-- | www/js/DataModel.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/www/js/DataModel.js b/www/js/DataModel.js index 70fd5caf..19333fa5 100644 --- a/www/js/DataModel.js +++ b/www/js/DataModel.js @@ -260,6 +260,7 @@ angular.module('zmApp.controllers') // OK: do something with firstReachableUrl }, function () { d.reject ("No servers reachable"); + loginData = savedLoginData; return d.promise; // KO: no url could be reached }); @@ -285,8 +286,8 @@ angular.module('zmApp.controllers') zmLog ("Success: reachability on "+ urls[0].url); $ionicLoading.hide(); return urls[0]; - }, function() { - zmLog ("Failed reachability on "+ urls[0].url); + }, function(err) { + zmLog ("Failed reachability on "+ urls[0].url+ " with error " + JSON.stringify(err)); return findFirstReachableUrl(urls.slice(1)); }); } |
