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

Function reportableOpenFailure

src/mcp/engine.ts:43–45  ·  view source on GitHub ↗

* Why the default project failed to open, when a tool call should say so * rather than "no project loaded": the Windows/WSL shared index (#995), or an * index that exists but SQLite could not open, or no node:sqlite at all.

(err: unknown)

Source from the content-addressed store, hash-verified

41 * index that exists but SQLite could not open, or no node:sqlite at all.
42 */
43function reportableOpenFailure(err: unknown): WslSharedIndexError | DatabaseOpenError | NodeSqliteUnavailableError | null {
44 return err instanceof WslSharedIndexError || isDatabaseOpenFailure(err) ? err : null;
45}
46
47export interface MCPEngineOptions {
48 /** Serve existing index contents without syncing, watching, or claiming a writer slot. */

Callers 2

retryInitializeSyncMethod · 0.85
doInitializeMethod · 0.85

Calls 1

isDatabaseOpenFailureFunction · 0.90

Tested by

no test coverage detected