cli-panics 0.1.2

Make your panics easy to read
Documentation
  • Coverage
  • 0%
    0 out of 1 items documented0 out of 0 items with examples
  • Size
  • Source code size: 1.93 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.02 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 12s Average build duration of successful builds.
  • all releases: 12s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • mrtnvgr/quiet_panics
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • mrtnvgr

quiet_panics

Hides debugging information from the user, leaving only the panic message.

Turns this:

thread 'main' panicked at src/main.rs:22:9:
test.patch.ini is not a file
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Into this:

test.patch.ini is not a file

Usage:

use quiet_panics::set_panic_hook;

fn main() {
    set_panic_hook();

    // ...
}