From 534dd562f60b28dab87be7fa1028542e34496cdc Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 6 Sep 2018 15:40:25 +0200 Subject: [PATCH] Show error text of notifications response from server --- notifications/js/notificationajaxpopup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notifications/js/notificationajaxpopup.js b/notifications/js/notificationajaxpopup.js index 600286f918..25132e60bd 100644 --- a/notifications/js/notificationajaxpopup.js +++ b/notifications/js/notificationajaxpopup.js @@ -78,7 +78,7 @@ * @type Number */ var TIMEOUT = 0; - + /** * Constructor inits polling and installs handlers, polling frequence is passed via data-poll-interval of script tag */ @@ -120,7 +120,7 @@ _resolve(); self.check_browser_notify() }).sendRequest(true,'POST', function(_err){ - egw.message(_err); + if (_err && _err.statusText) egw.message(_err.statusText); _reject(); }); });