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

Function databaseOpenFailureText

src/mcp/tools.ts:131–137  ·  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

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

Callers 2

executeMethod · 0.85
executeReadToolMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected