feat: add misc/better_panic

This commit is contained in:
2020-11-30 00:37:15 +08:00
parent 4948dc547e
commit 5157903b3a
4 changed files with 224 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
fn main() {
better_panic::Settings::debug()
.most_recent_first(false)
.lineno_suffix(true)
.verbosity(better_panic::Verbosity::Full)
.install();
println!("A normal log message");
panic!("OMG EVERYTHING IS ON FIRE!!!")
}