Show error text of notifications response from server

This commit is contained in:
Hadi Nategh 2018-09-06 15:40:25 +02:00
parent f2ac6af5ac
commit 534dd562f6

View File

@ -78,7 +78,7 @@
* @type Number * @type Number
*/ */
var TIMEOUT = 0; var TIMEOUT = 0;
/** /**
* Constructor inits polling and installs handlers, polling frequence is passed via data-poll-interval of script tag * Constructor inits polling and installs handlers, polling frequence is passed via data-poll-interval of script tag
*/ */
@ -120,7 +120,7 @@
_resolve(); _resolve();
self.check_browser_notify() self.check_browser_notify()
}).sendRequest(true,'POST', function(_err){ }).sendRequest(true,'POST', function(_err){
egw.message(_err); if (_err && _err.statusText) egw.message(_err.statusText);
_reject(); _reject();
}); });
}); });