Fix: rm invalid errorMessage on e.toString() (#24805)

This commit is contained in:
Yongtao Huang
2025-08-30 21:18:51 +08:00
committed by GitHub
parent 0fe078d25e
commit 863f3aeb27

View File

@@ -467,7 +467,7 @@ export const ssePost = async (
onAgentLog,
)
}).catch((e) => {
if (e.toString() !== 'AbortError: The user aborted a request.' && !e.toString().errorMessage.includes('TypeError: Cannot assign to read only property'))
if (e.toString() !== 'AbortError: The user aborted a request.' && !e.toString().includes('TypeError: Cannot assign to read only property'))
Toast.notify({ type: 'error', message: e })
onError?.(e)
})