Use getErrorMessage in superuser.js

This commit is contained in:
Evan Cordell 2016-04-12 16:54:58 -04:00
parent d67c4ba46c
commit 951e6dd3ed

View file

@ -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();
}
}());
}());