Nicely handle the case where we cannot connect to Redis

This commit is contained in:
Joseph Schorr 2014-03-25 13:29:06 -04:00
parent b252520ab0
commit 16d3ddd8cc
3 changed files with 17 additions and 4 deletions

View file

@ -3365,6 +3365,9 @@ quayApp.directive('buildMessage', function () {
controller: function($scope, $element) {
$scope.getBuildMessage = function (phase) {
switch (phase) {
case 'cannot_load':
return 'Cannot load build status - Please report this error';
case 'starting':
case 'initializing':
return 'Starting Dockerfile build';
@ -3419,6 +3422,7 @@ quayApp.directive('buildProgress', function () {
case 'initializing':
case 'starting':
case 'waiting':
case 'cannot_load':
return 0;
break;
}