Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/passman-webextension.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrantje <brantje@gmail.com>2017-10-26 20:10:47 +0300
committerbrantje <brantje@gmail.com>2017-10-26 20:10:47 +0300
commitc418bf420d2f5c66e69af7353fc749908203ab73 (patch)
treef9916b480cc76ef093ab9b78db9dbdbe4c9574a5
parent2bd5043e5bfb06ce9702583c1d6f52de52d729d5 (diff)
Give proper error message
-rw-r--r--js/lib/api.js4
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){