1
0
Fork 0
mirror of synced 2024-07-06 15:00:49 +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
try {
error = await response.json()
if (!error.message) {
error = JSON.stringify(error)
}
} catch (err) {
error = await response.text()
}