MCPcopy Create free account
hub / github.com/anus-dev/ANUS / isNodeError

Function isNodeError

packages/core/src/utils/errors.ts:14–16  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

12}
13
14export function isNodeError(error: unknown): error is NodeJS.ErrnoException {
15 return error instanceof Error && 'code' in error;
16}
17
18export function getErrorMessage(error: unknown): string {
19 if (error instanceof Error) {

Callers 15

performGrepSearchMethod · 0.85
getUpdatedParamsFunction · 0.85
calculateEditMethod · 0.85
getModifyContextMethod · 0.85
getCorrectedFileContentFunction · 0.85
executeMethod · 0.85
fullyResolvedPathMethod · 0.85
readFullStructureFunction · 0.85
fetchWithTimeoutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected