Skip to content

Commit

Permalink
feat: improve error reporting system (#1038)
Browse files Browse the repository at this point in the history
* feat: add draft a concept code

* feat: add err_ctx to diagnostic

* feat: optimize error report

* chore: add user-friendly help

* fix: manual merge lockfile from main
  • Loading branch information
jaeheonji authored Mar 13, 2022
1 parent 29d1ccf commit 0b74604
Show file tree
Hide file tree
Showing 4 changed files with 171 additions and 68 deletions.
114 changes: 104 additions & 10 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions zellij-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ pub fn start_client(
std::panic::set_hook({
use zellij_utils::errors::handle_panic;
let send_client_instructions = send_client_instructions.clone();
let os_input = os_input.clone();
Box::new(move |info| {
os_input.unset_raw_mode(0);
handle_panic(info, &send_client_instructions);
})
});
Expand Down
1 change: 1 addition & 0 deletions zellij-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ zellij-tile = { path = "../zellij-tile/", version = "0.27.0" }
log = "0.4.14"
log4rs = "1.0.0"
unicode-width = "0.1.8"
miette = { version = "3.3.0", features = ["fancy"] }

[dependencies.async-std]
version = "1.3.0"
Expand Down
Loading

0 comments on commit 0b74604

Please sign in to comment.