MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / hasExactErrorMessage

Function hasExactErrorMessage

src/utils/errors.ts:103–105  ·  view source on GitHub ↗
(error: unknown, message: string)

Source from the content-addressed store, hash-verified

101}
102
103export function hasExactErrorMessage(error: unknown, message: string): boolean {
104 return error instanceof Error && error.message === message
105}
106
107/**
108 * Normalize an unknown value into an Error.

Callers 4

errors.test.tsFile · 0.90
callFunction · 0.85
autoCompactIfNeededFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected