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

Function databaseOpenFailureText

src/mcp/tools.ts:125–131  ·  view source on GitHub ↗

* A project whose index exists but could not be opened: SQLite's own failure, * with the path and what to check, or a runtime without node:sqlite. A real * malfunction, so it stays `isError` with the retry-once note, but it says * what failed instead of calling it an internal error.

(err: DatabaseOpenError | NodeSqliteUnavailableError)

Source from the content-addressed store, hash-verified

123 * what failed instead of calling it an internal error.
124 */
125function databaseOpenFailureText(err: DatabaseOpenError | NodeSqliteUnavailableError): string {
126 return (
127 `${err.message}\n` +
128 'Retry the call once; if it persists, continue without codegraph for this task and pass ' +
129 'the message above on to the user.'
130 );
131}
132
133function wslSharedIndexGuidance(err: WslSharedIndexError): string {
134 return (

Callers 2

executeMethod · 0.85
executeReadToolMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected