Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why?
Improve experience of developer and user
As a user terminal program, having a good panic output is a good way to improve the user experience and help developers improve their programs.
However, Rust's panic output is very verbose, see the example given by the
human-panic
project for an example of a PullRequest submitted for the same reason thehuman-panic
project exists.Help hacking with different v8 runtime
For a number of reasons, upstream V8 is updated very quickly.
At the same time, NodeJS and Electron, which are downstream programs of V8, are also changing rapidly, and downstream programs based on V8 tend to co-exist with many versions in the course of users' use. For hacking V8 behavior, it is very important to have a good panic output returned from the user - because it is possible to get the changes of different versions of V8, and it is very normal that method A exists in version x of V8, but not in version y of V8.
Figure out how users actually use your project
This does not appear to be very important.
Users may use your program in ways you wouldn't expect. You can get the gist from the panic message, but I don't think that's the goal of
human-panic
.To get to that point, I recommend you consider introducing
tracing
andtracing-subscriber
to your project.