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

Function databaseOpenFailureText

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

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

Callers 2

executeMethod · 0.85
executeReadToolMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected