MCPcopy Index your code
hub / github.com/FlowiseAI/Flowise / isErrorWithMessage

Function isErrorWithMessage

packages/ui/src/utils/errorHandler.js:1–3  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

1const isErrorWithMessage = (error) => {
2 return typeof error === 'object' && error !== null && 'message' in error && typeof error.message === 'string'
3}
4
5const toErrorWithMessage = (maybeError) => {
6 if (isErrorWithMessage(maybeError)) return maybeError

Callers 1

toErrorWithMessageFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected