Spread other error information in ErrorMessage

The current Error that can be copied by users, isn't very helpful for
debugging.

We should stringify the entire error, with zodIssues, path, body, etc.
for useful debugging.
This commit is contained in:
Sebastian Martinez
2023-11-27 20:53:10 +01:00
parent 64389809ff
commit b107b43ad0
+5 -1
View File
@@ -40,7 +40,11 @@
</div>
<div style:max-width="25rem">
<Command
command={JSON.stringify({ message: error.message, stack: error.stack })}
command={JSON.stringify({
message: error.message,
stack: error.stack,
...error,
})}
fullWidth
showPrompt={false} />
</div>