MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / hasExactErrorMessage

Function hasExactErrorMessage

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

Source from the content-addressed store, hash-verified

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

Callers 3

callFunction · 0.85
autoCompactIfNeededFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected