handle reserved domain errors

This commit is contained in:
Johannes Zellner
2019-09-19 22:02:37 +02:00
parent 8403b811d8
commit 8c1988e480
+2 -2
View File
@@ -219,8 +219,8 @@ 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) {
if (error && (error.statusCode === 409 || error.statusCode === 400)) {
if ((error.location && error.domain) || error.field === 'location') {
$scope.location.error.location = error.message;
$scope.locationForm.$setPristine();
} else {