Comments (1)
In general, it depends on how early you're willing to print a human-readable panic. If you set it later into your program's logic, then you could possibly have a panic which doesn't use this library's panic hook - meaning the message will just be "panicking because of thing hahah!"
For that reason, most people will want to put it in their program's entrypoint. For almost all Rust binaries, that'll be somewhere at the top of main()
, or even as the first line of main. Again, the earlier you set the hook, the more clear-cut (and reportable) panics will be to your users.
I hope that helps! If you have any other questions, please let me know! :)
from human-panic.
Related Issues (20)
- consider using/copying backtrace-ext to more properly filter the backtrace
- Dependency Dashboard
- Remove `toml` dependency HOT 2
- Human panic only when it's intended for humans HOT 7
- 🙋 Suggestion: Start printing backtrace from panic's position HOT 1
- Custom error message HOT 6
- Where is the panic! log message ? HOT 4
- Update to Rust 2018
- Cause (Payload) Does Not Support Strings
- 🙋 Option to print the report HOT 2
- New (point) release? HOT 6
- Custom human error printer
- User should can set selfdefine panic file path in setup macro
- v1.0.2 breaks wasm-pack v0.9.1 because of #45 HOT 1
- 🐛 Changelog out of date, missing entries for 1.0.1 and 1.0.3
- Update documents on the https://crates.io/crates/human-panic.
- Fallback to repository if homepage is absent
- Minimum Supported Rust Version isn't supported HOT 1
- metadata! doesn't use $crate
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from human-panic.