MCPcopy Index your code
hub / github.com/microsoft/AI-Engineering-Coach / showErrorFallback

Function showErrorFallback

src/webview/render.ts:125–133  ·  view source on GitHub ↗
(pageName: string, container: HTMLElement, err: unknown)

Source from the content-addressed store, hash-verified

123}
124
125function showErrorFallback(pageName: string, container: HTMLElement, err: unknown): void {
126 const message = err instanceof Error ? err.message : String(err);
127 render(html`
128 <div class="error-boundary">
129 <h3>\u26a0\ufe0f Failed to render ${pageName}</h3>
130 <p class="error-message">${message}</p>
131 <p class="error-hint">Try reloading the dashboard (Ctrl+Shift+P \u2192 "AI Engineer Coach: Reload Data")</p>
132 </div>`, container);
133}

Callers 1

withErrorBoundaryFunction · 0.70

Calls 2

renderFunction · 0.85
htmlFunction · 0.70

Tested by

no test coverage detected