We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c67166 commit 3a9f836Copy full SHA for 3a9f836
src/app/components/generator/FileView.tsx
@@ -14,7 +14,11 @@ export function FileView({ docAndNode: original }: FileViewProps) {
14
15
const [error, errorRetry] = useErrorBoundary()
16
if (error) {
17
- return <ErrorPanel error={`Error viewing the file: ${message(error)}`} onDismiss={errorRetry} />
+ const viewError = new Error(`Error viewing the file: ${message(error)}`)
18
+ if (error.stack) {
19
+ viewError.stack = error.stack
20
+ }
21
+ return <ErrorPanel error={viewError} onDismiss={errorRetry} />
22
}
23
24
const docAndNode = useDocAndNode(original)
0 commit comments