(searched: readonly string[])
| 25 | */ |
| 26 | export class ViewerMissingError extends Error { |
| 27 | constructor(searched: readonly string[]) { |
| 28 | super( |
| 29 | 'The CodeGraph viewer assets are missing from this installation.\n' + |
| 30 | 'Looked in:\n' + |
| 31 | searched.map((p) => ` ${p}`).join('\n') + |
| 32 | '\n\nIf you installed CodeGraph normally, reinstall it — the release bundle ' + |
| 33 | 'ships the viewer.\nIf you are working from a source checkout, run: npm run build' |
| 34 | ); |
| 35 | this.name = 'ViewerMissingError'; |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | /** |