Skip to content

Commit

Permalink
Add improved error display in playground
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Oct 19, 2023
1 parent b1f1f81 commit d6bb70c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/_asset/editor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,13 @@ function ErrorFallback(props) {
function DisplayError(props) {
return (
<pre>
<code>{String(props.error.stack || props.error)}</code>
<code>
{String(
props.error.stack
? props.error.message + '\n' + props.error.stack
: props.error
)}
</code>
</pre>
)
}
Expand Down

1 comment on commit d6bb70c

@vercel
Copy link

@vercel vercel bot commented on d6bb70c Oct 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

mdx – ./

v2.mdxjs.com
mdx-mdx.vercel.app
mdx-git-main-mdx.vercel.app
mdxjs.com

Please sign in to comment.