Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

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

Yongtao Huang863f3aeb27d7
diff --git a/web/service/base.ts b/web/service/base.ts
index 33aebf9cfb3..5386f9b07b1 100644
--- a/web/service/base.ts
+++ b/web/service/base.ts
@@ -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)
})