Fix error message display in configure dialog

This commit is contained in:
Girish Ramakrishnan
2018-06-26 17:35:37 -07:00
parent a833ceb737
commit 98661de24e

View File

@@ -142,7 +142,7 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
$scope.appConfigureForm.mailboxName.$setPristine();
$('#appConfigureMailboxNameInput').focus();
} else if (error.statusCode === 409) {
$scope.appConfigure.error.location = 'This name is already taken.';
$scope.appConfigure.error.location = error.message;
$scope.appConfigureForm.location.$setPristine();
$('#appConfigureLocationInput').focus();
} else if (error.statusCode === 400 && error.message.indexOf('cert') !== -1 ) {