mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 03:40:37 +08:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user