diff options
| author | Fuwn <[email protected]> | 2021-05-17 12:52:39 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-17 12:52:39 +0000 |
| commit | b14d40cbc8f192f286909cf8383b244aa18a36cf (patch) | |
| tree | 802b787879a1455f29e25c8f2f4746324842ee7b | |
| parent | fix(make): makefile and license auto-extended (diff) | |
| download | whirl-b14d40cbc8f192f286909cf8383b244aa18a36cf.tar.xz whirl-b14d40cbc8f192f286909cf8383b244aa18a36cf.zip | |
feat(core): better panic messages on release builds
| -rw-r--r-- | whirl/Cargo.toml | 1 | ||||
| -rw-r--r-- | whirl/src/main.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/whirl/Cargo.toml b/whirl/Cargo.toml index 2066907..9b00ae8 100644 --- a/whirl/Cargo.toml +++ b/whirl/Cargo.toml @@ -22,6 +22,7 @@ dotenv = "0.15.0" # Logging log = "0.4.14" flexi_logger = "0.17.1" +human-panic = "1.0.3" # Utility rand = "0.8.3" diff --git a/whirl/src/main.rs b/whirl/src/main.rs index 8010a4f..a6d4533 100644 --- a/whirl/src/main.rs +++ b/whirl/src/main.rs @@ -13,6 +13,7 @@ async fn main() -> Result<(), Box<dyn Error>> { // Logging dotenv::dotenv().ok(); + human_panic::setup_panic!(); let logger = flexi_logger::Logger::with_str(calculate_log_level()); if std::env::var("LOG_FILE").unwrap_or_else(|_| "true".to_string()) == "false" || !Config::get().whirlsplash.log.file |