| 46 | * Surfaced as a 404 by the API. |
| 47 | */ |
| 48 | export 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. */ |
| 56 | export function applyAppend(content: string, text: string): PatchResult { |
nothing calls this directly
no outgoing calls
no test coverage detected