aboutsummaryrefslogtreecommitdiff
path: root/modern/src/settings/UsersPage.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/settings/UsersPage.js')
-rw-r--r--modern/src/settings/UsersPage.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/modern/src/settings/UsersPage.js b/modern/src/settings/UsersPage.js
index 2d8d1199..235ae4c7 100644
--- a/modern/src/settings/UsersPage.js
+++ b/modern/src/settings/UsersPage.js
@@ -27,6 +27,8 @@ const UsersView = ({ updateTimestamp, onMenuClick }) => {
const response = await fetch('/api/users');
if (response.ok) {
setItems(await response.json());
+ } else {
+ throw Error(await response.text());
}
}, [updateTimestamp]);