Display go-set error messages, move html error text to log (commented)

This commit is contained in:
Christoph Kluge 2022-08-26 13:52:45 +02:00
parent 7bfdc83779
commit 0186e886e4
3 changed files with 9 additions and 3 deletions

View File

@ -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')

View File

@ -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')

View File

@ -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')