diff --git a/static/js/pages/superuser.js b/static/js/pages/superuser.js index 2f9e95d37..740481b81 100644 --- a/static/js/pages/superuser.js +++ b/static/js/pages/superuser.js @@ -129,7 +129,7 @@ $scope.showInterface = true; }, function(resp) { $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. $scope.checkStatus(); } -}()); \ No newline at end of file +}());