From 951e6dd3ed8491d86fdc77dbf9d652ab2dd88e27 Mon Sep 17 00:00:00 2001 From: Evan Cordell Date: Tue, 12 Apr 2016 16:54:58 -0400 Subject: [PATCH] Use getErrorMessage in `superuser.js` --- static/js/pages/superuser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}());