aboutsummaryrefslogtreecommitdiff
path: root/src/settings/PreferencesPage.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings/PreferencesPage.jsx')
-rw-r--r--src/settings/PreferencesPage.jsx4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/settings/PreferencesPage.jsx b/src/settings/PreferencesPage.jsx
index 3b7fcaed..a8e3de88 100644
--- a/src/settings/PreferencesPage.jsx
+++ b/src/settings/PreferencesPage.jsx
@@ -89,9 +89,7 @@ const PreferencesPage = () => {
const handleReboot = useCatch(async () => {
const response = await fetch('/api/server/reboot', { method: 'POST' });
- if (!response.ok) {
- throw Error(await response.text());
- }
+ throw Error(response.statusText);
});
return (