Skip to content

Commit

Permalink
feat: Integrate human_panic for much nicer panic handling
Browse files Browse the repository at this point in the history
  • Loading branch information
stchris committed Sep 24, 2024
1 parent ef1f80e commit f69f170
Show file tree
Hide file tree
Showing 3 changed files with 106 additions and 0 deletions.
104 changes: 104 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ chrono = "0.4"
color-eyre = "0.6"
crossterm = "0.28"
home = "0.5"
human-panic = "2.0.1"
humanize-duration = { version = "0.0", features = ["chrono"] }
itertools = "0.13.0"
num-format = "0.4"
Expand Down
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ use event::{Event, EventHandler};
use ratatui::prelude::{CrosstermBackend, Terminal};
use tui::Tui;
fn main() -> Result<()> {
human_panic::setup_panic!();
let mut app = App::new();
let first_arg = std::env::args().nth(1);
let quit = match first_arg {
Expand Down

0 comments on commit f69f170

Please sign in to comment.