MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / notReadable

Function notReadable

graph-ui/src/reader/file-source.ts:85–88  ·  view source on GitHub ↗

* A file the reader cannot show is announced to the frontend log before it * is thrown (provider/error-observer.ts). The /rpc failures underneath * announce themselves; a file the index does not know, or the server's * placeholder for a file gone from disk, is a successful call with nothing * in

(path: string, message: string)

Source from the content-addressed store, hash-verified

83 * in it, and only this module knows that it is a failure.
84 */
85function notReadable(path: string, message: string): FileNotReadableError {
86 reportError({ source: 'reader', level: 'warn', message });
87 return new FileNotReadableError(path, message);
88}
89
90function toOptionalNumber(cell: string | undefined): number | undefined {
91 if (cell === undefined || cell === '') {

Callers 1

loadFileDocumentFunction · 0.85

Calls 1

reportErrorFunction · 0.90

Tested by

no test coverage detected