From 5828513a3a7f16693cfb34f9964c1f0585b75b19 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Tue, 27 Nov 2018 16:51:30 +0100 Subject: [PATCH] handle error while polling notifications fails --- app/assets/javascripts/controllers/application.js.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/controllers/application.js.erb b/app/assets/javascripts/controllers/application.js.erb index de01efdcc..c9c930ad3 100644 --- a/app/assets/javascripts/controllers/application.js.erb +++ b/app/assets/javascripts/controllers/application.js.erb @@ -323,6 +323,8 @@ Application.Controllers.controller('ApplicationController', ['$rootScope', '$sco $scope.notifications = data.totals; angular.forEach(data.notifications, function (notification) { growl.info(notification.message.description); }); + }).catch(function (error) { + console.error('Error while polling notifications', error); }); } };