diff options
author | brantje <brantje@gmail.com> | 2017-10-26 20:10:47 +0300 |
---|---|---|
committer | brantje <brantje@gmail.com> | 2017-10-26 20:10:47 +0300 |
commit | c418bf420d2f5c66e69af7353fc749908203ab73 (patch) | |
tree | f9916b480cc76ef093ab9b78db9dbdbe4c9574a5 | |
parent | 2bd5043e5bfb06ce9702583c1d6f52de52d729d5 (diff) |
Give proper error message
-rw-r--r-- | js/lib/api.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/lib/api.js b/js/lib/api.js index ea11273..e90811a 100644 --- a/js/lib/api.js +++ b/js/lib/api.js @@ -216,8 +216,8 @@ window.PAPI = (function () { var request = new Request(host + '/index.php/apps/passman' + endpoint, opts); var timeoutTimer = setTimeout(function () { - API.notifications.create('Error', 'Error connecting to server (Error: '+ e +')'); - callback({error: true, result: {statusText: e, status: 0}}); + API.notifications.create('Error', 'Error connecting to server (Error: Connection timeout)'); + callback({error: true, result: {statusText: 'Connection timeout', status: 0}}); }, 10000); fetch(request).then(function(response){ |