MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / sqliteError

Function sqliteError

__tests__/sqlite-open-error.test.ts:70–72  ·  view source on GitHub ↗

A node:sqlite error as SQLite reports it.

(errcode: number, message: string)

Source from the content-addressed store, hash-verified

68
69/** A node:sqlite error as SQLite reports it. */
70function sqliteError(errcode: number, message: string): Error {
71 return Object.assign(new Error(message), { code: 'ERR_SQLITE_ERROR', errcode, errstr: message });
72}
73
74/**
75 * Hold `file` open with no sharing, as a backup or antivirus scan can on

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected