diff --git a/static/js/directives/quay-message-bar.js b/static/js/directives/quay-message-bar.js index 04e94dbd7..ec4fe0f4c 100644 --- a/static/js/directives/quay-message-bar.js +++ b/static/js/directives/quay-message-bar.js @@ -11,11 +11,11 @@ angular.module('quay').directive('quayMessageBar', function () { scope: {}, controller: function ($scope, $element, ApiService) { $scope.messages = []; - try { - ApiService.getMessages().then(function (data) { - $scope.messages = data['messages'] || []; - }); - } + ApiService.getMessages().then(function (data) { + $scope.messages = data['messages'] || []; + }, function (resp) { + return true; + }); } }; });