Skip to content

Commit 191f732

Browse files
committed
More descriptive error message in case cargo is killed
1 parent 8ba4438 commit 191f732

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cargo-auditable/src/cargo_auditable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ pub fn main() {
3737
let results = command
3838
.status()
3939
.expect("Failed to invoke cargo! Make sure it's in your $PATH");
40-
std::process::exit(results.code().unwrap());
40+
std::process::exit(results.code().expect("cargo was terminated by a deadly signal"));
4141
}

0 commit comments

Comments
 (0)