tweak: additional error msg parsing case

pull/5222/head
Aiden Cline 2025-12-07 20:10:43 -06:00
parent f96c181afd
commit 9ff39503e9
1 changed files with 1 additions and 1 deletions

View File

@ -754,7 +754,7 @@ export namespace MessageV2 {
try {
const body = JSON.parse(e.responseBody)
// try to extract common error message fields
const errMsg = body.message || body.error
const errMsg = body.message || body.error || body.error?.message
if (errMsg && typeof errMsg === "string") {
return `${msg}: ${errMsg}`
}