diff options
Diffstat (limited to 'modern/src/main')
-rw-r--r-- | modern/src/main/DevicesList.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modern/src/main/DevicesList.js b/modern/src/main/DevicesList.js index 4da93547..6ff08c6a 100644 --- a/modern/src/main/DevicesList.js +++ b/modern/src/main/DevicesList.js @@ -164,6 +164,8 @@ const DeviceView = ({ updateTimestamp, onMenuClick, filter }) => { const response = await fetch('/api/devices'); if (response.ok) { dispatch(devicesActions.refresh(await response.json())); + } else { + throw Error(await response.text()); } }, [updateTimestamp]); |