diff --git a/web/frontend/src/config/PlotSettings.svelte b/web/frontend/src/config/PlotSettings.svelte index 1b7542d..76bc43c 100644 --- a/web/frontend/src/config/PlotSettings.svelte +++ b/web/frontend/src/config/PlotSettings.svelte @@ -28,7 +28,9 @@ let text = await res.text() popMessage(text, target, '#048109') } else { - throw new Error('Response Code ' + res.status + '-> ' + res.statusText); + let text = await res.text() + // console.log(res.statusText) + throw new Error('Response Code ' + res.status + '-> ' + text) } } catch (err) { popMessage(err, target, '#d63384') diff --git a/web/frontend/src/config/admin/AddRole.svelte b/web/frontend/src/config/admin/AddRole.svelte index dcd4cef..bdb0eba 100644 --- a/web/frontend/src/config/admin/AddRole.svelte +++ b/web/frontend/src/config/admin/AddRole.svelte @@ -28,7 +28,9 @@ popMessage(text, '#048109') reloadUserList() } else { - throw new Error('Response Code ' + res.status + '-> ' + res.statusText) + let text = await res.text() + // console.log(res.statusText) + throw new Error('Response Code ' + res.status + '-> ' + text) } } catch (err) { popMessage(err, '#d63384') diff --git a/web/frontend/src/config/admin/AddUser.svelte b/web/frontend/src/config/admin/AddUser.svelte index bca89f0..64d3519 100644 --- a/web/frontend/src/config/admin/AddUser.svelte +++ b/web/frontend/src/config/admin/AddUser.svelte @@ -19,7 +19,9 @@ popMessage(text, '#048109') reloadUserList() } else { - throw new Error('Response Code ' + res.status + '-> ' + res.statusText); + let text = await res.text() + // console.log(res.statusText) + throw new Error('Response Code ' + res.status + '-> ' + text) } } catch (err) { popMessage(err, '#d63384')