Use getErrorMessage in superuser.js
This commit is contained in:
parent
d67c4ba46c
commit
951e6dd3ed
1 changed files with 2 additions and 2 deletions
|
@ -129,7 +129,7 @@
|
||||||
$scope.showInterface = true;
|
$scope.showInterface = true;
|
||||||
}, function(resp) {
|
}, function(resp) {
|
||||||
$scope.users = [];
|
$scope.users = [];
|
||||||
$scope.usersError = resp['data']['message'] || resp['data']['error_description'] || resp['data']['detail'];
|
$scope.usersError = ApiService.getErrorMessage(resp);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -365,4 +365,4 @@
|
||||||
// Load the initial status.
|
// Load the initial status.
|
||||||
$scope.checkStatus();
|
$scope.checkStatus();
|
||||||
}
|
}
|
||||||
}());
|
}());
|
||||||
|
|
Reference in a new issue