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
1 changed files with 3 additions and 0 deletions

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()
} }