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.

332 B
Raw Blame
function isAbortError(error: unknown): boolean {
  if (!error || typeof error !== 'object') return false
  if ('name' in error && error.name === 'AbortError') return true
  return 'cause' in error && isAbortError(error.cause)
}

export function reportClientError(error: unknown) {
  if (!isAbortError(error)) console.error(error)
}