1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00

handle error while polling notifications fails

This commit is contained in:
Sylvain 2018-11-27 16:51:30 +01:00
parent f6cd552c66
commit 5828513a3a

View File

@ -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);
});
}
};