Better error display for build logs view

Fixes #1492
This commit is contained in:
Joseph Schorr 2016-05-31 14:41:45 -04:00
parent af58989046
commit 303db01ec5
3 changed files with 14 additions and 3 deletions

View file

@ -132,10 +132,16 @@ angular.module('quay').directive('buildLogsView', function () {
}
handleLogsData(resp, callback);
}, function() {
}, function(resp) {
if (resp.status == 403) {
$scope.loadError = 'unauthorized';
} else {
$scope.loadError = 'request-failed';
}
callback(false);
});
}, function() {
$scope.loadError = 'request-failed';
callback(false);
});
};