Skip to content

Commit

Permalink
Upgrade human-panic
Browse files Browse the repository at this point in the history
  • Loading branch information
brettcannon committed Jun 30, 2024
1 parent a8a6fdb commit 4dcf12d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ path = "src/main.rs"
[dependencies]
comfy-table = "7.1.1"
exitcode = "1.1.2"
human-panic = "1.2.3"
human-panic = "2.0.0"
log = "0.4.21"
nix = {version = "0.27.1", features = ["process"]}
stderrlog = "0.6.0"
Expand Down
14 changes: 8 additions & 6 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,20 @@
use std::{env, ffi::CString, os::unix::ffi::OsStrExt, path::Path};

use human_panic::Metadata;

use nix::unistd;

use python_launcher::cli;

#[cfg(not(tarpaulin_include))]
fn main() {
human_panic::setup_panic!(Metadata {
name: env!("CARGO_PKG_DESCRIPTION").into(),
version: env!("CARGO_PKG_VERSION").into(),
authors: env!("CARGO_PKG_AUTHORS").into(),
homepage: env!("CARGO_PKG_REPOSITORY").into(),
});
human_panic::setup_panic!(Metadata::new(
env!("CARGO_PKG_DESCRIPTION"),
env!("CARGO_PKG_VERSION")
)
.authors(env!("CARGO_PKG_AUTHORS"))
.homepage(env!("CARGO_PKG_REPOSITORY")));

let log_level = if env::var_os("PYLAUNCH_DEBUG").is_some() {
3
Expand Down

0 comments on commit 4dcf12d

Please sign in to comment.