diff --git a/src/views/app.html b/src/views/app.html index 8974f528e..9da152404 100644 --- a/src/views/app.html +++ b/src/views/app.html @@ -232,9 +232,8 @@
-
{{ location.error.other }}
- +
diff --git a/src/views/app.js b/src/views/app.js index 21c2c42c0..98eae0450 100644 --- a/src/views/app.js +++ b/src/views/app.js @@ -197,6 +197,17 @@ angular.module('Application').controller('AppController', ['$scope', '$location' }; Client.configureApp($scope.app.id, 'location', data, function (error) { + if (error && error.statusCode === 409) { + if (error.location && error.domain) { + $scope.location.error.location = error.message; + $scope.locationForm.$setPristine(); + } else { + $scope.location.error.alternateDomains = error.message; + } + + $scope.location.busy = false; + return; + } if (error) return Client.error(error); $scope.location.success = true;