{"repo":"rust-cli/human-panic","free":true,"listed":false,"github":"https://github.com/rust-cli/human-panic","clone":"git clone https://github.com/rust-cli/human-panic.git","description":"Panic messages for humans.","language":"Rust","stars":1855,"topics":["rust","human-centered-design","panic-hook"],"license":"Apache-2.0","category":"cli-tools","readme_excerpt":"human-panic [![crates.io version][1]][2] [![build status][3]][4] [![downloads][5]][6] [![docs.rs docs][7]][8] Panic messages for humans. Handles panics by calling std::panic::set hook to make errors nice for humans. - [Documentation][8] - [Crates.io][2] Why? When you're building a CLI, polish is super important. Even though Rust is pretty great at safety, it's not unheard of to access the wrong index in a vector or have an assert fail somewhere. When an error eventually occurs, you probably will want to know about it. So instead of just providing an error message on the command line, we can create a call to action for people to submit a report. This should empower people to engage in communication, lowering the chances people might get frustrated. And making it easier to figure out what might be causing bugs. Default Output Human-Panic Output The error dump file generated by human-panic contains the following fields. Usage It only displays a human-friendly panic message in release mode: Installation License Licensed under either of Apache License, Version 2.0, (LICENSE-APACHE or ) MIT license (LICENSE-MIT or ) at your option. Contribution Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual-licensed as above, without any additional terms or conditions. [1]: https://img.shields.io/crates/v/human-panic.svg?style=flat-square [2]: https://crates.io/crates/human-panic [","default_branch":null,"files":null,"tree":[],"storefront":"/r/rust-cli","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rust-cli/human-panic/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}