Use error codes and fields
This commit is contained in:
@@ -191,9 +191,9 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$loca
|
||||
$scope.appInstall.subscriptionHelperPage = 'app_install_subscription_required.html';
|
||||
}
|
||||
} else if (error.statusCode === 409) {
|
||||
if (error.reason === 'Port Conflict') {
|
||||
if (error.portName) {
|
||||
$scope.appInstall.error.port = error.message;
|
||||
} else if (error.reason === 'Location Conflict') {
|
||||
} else if (error.domain) {
|
||||
$scope.appInstall.error.location = error.message;
|
||||
$scope.appInstallForm.location.$setPristine();
|
||||
$('#appInstallLocationInput').focus();
|
||||
@@ -201,7 +201,7 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$loca
|
||||
$scope.appInstall.error.other = error.message;
|
||||
}
|
||||
} else if (error.statusCode === 400) {
|
||||
if (error.reason === 'Invalid certificate') {
|
||||
if (error.field === 'cert') {
|
||||
$scope.appInstall.error.cert = error.message;
|
||||
$scope.appInstall.certificateFileName = '';
|
||||
$scope.appInstall.certificateFile = null;
|
||||
|
||||
Reference in New Issue
Block a user