Merge remote-tracking branch 'origin/better-error'

This commit is contained in:
yackob03 2014-01-30 13:44:33 -05:00
commit 96a97f667c
6 changed files with 233 additions and 120 deletions

View file

@ -1242,7 +1242,7 @@ function NewRepoCtrl($scope, $location, $http, $timeout, UserService, ApiService
$location.path('/repository/' + created.namespace + '/' + created.name);
}, function(result) {
$scope.creating = false;
$scope.createError = result.data;
$scope.createError = result.data ? result.data.message : 'Cannot create repository';
$timeout(function() {
$('#repoName').popover('show');
});