MCPcopy Create free account
hub / github.com/andylow92/file-system-like-github / BlockNotFoundError

Class BlockNotFoundError

packages/shared/src/patch.ts:48–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 * Surfaced as a 404 by the API.
47 */
48export class BlockNotFoundError extends Error {
49 constructor(public blockId: string) {
50 super(`Block anchor not found: ^${blockId}`);
51 this.name = 'BlockNotFoundError';
52 }
53}
54
55/** Append `text` to the end of `content`, with exactly one separating newline. */
56export function applyAppend(content: string, text: string): PatchResult {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected