Skip to content

Commit a2e5132

Browse files
committed
Include stack trace when throwing an exception in Chrome Devtools panel
1 parent ddb8d28 commit a2e5132

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/browser/extension/devpanel/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function showDevTools() {
3030
rendered = true;
3131
} catch (error) {
3232
render(
33-
<div>{error.toString()}</div>,
33+
<pre>{error.stack}</pre>,
3434
document.getElementById('root')
3535
);
3636
}

0 commit comments

Comments
 (0)