diff --git a/src/ServerProvider.jsx b/src/ServerProvider.jsx index cb05d7bcbe..f383647e86 100644 --- a/src/ServerProvider.jsx +++ b/src/ServerProvider.jsx @@ -21,7 +21,8 @@ const ServerProvider = ({ if (response.ok) { dispatch(sessionActions.updateServer(await response.json())); } else { - throw Error(await response.text()); + const message = await response.text(); + throw Error(message || response.statusText); } } catch (error) { setError(error.message);