1
0
Fork 0
mirror of synced 2024-07-30 02:26:11 +12:00

Surface email error (#12837)

This commit is contained in:
melohagan 2024-01-22 15:30:21 +00:00 committed by GitHub
parent e2620af76c
commit 2a24c85378
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -48,6 +48,9 @@ async function checkResponse(
let error let error
try { try {
error = await response.json() error = await response.json()
if (!error.message) {
error = JSON.stringify(error)
}
} catch (err) { } catch (err) {
error = await response.text() error = await response.text()
} }