MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / createNodeError

Function createNodeError

common/src/testing/errors.ts:16–20  ·  view source on GitHub ↗
(message: string, code: string)

Source from the content-addressed store, hash-verified

14}
15
16export const createNodeError = (message: string, code: string): NodeError => {
17 const error: NodeError = new Error(message)
18 error.code = code
19 return error
20}
21
22export const createPostgresError = (
23 message: string,

Callers 1

createMockFsFunction · 0.90

Calls

no outgoing calls

Tested by 1

createMockFsFunction · 0.72