Skip to content

Commit 98cc30a

Browse files
cargo-honggfuzz: use return value of Command::exec
1 parent 82d5531 commit 98cc30a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/cargo-honggfuzz.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ fn main() {
2222
let tsan_options = format!("report_signal_unsafe=0:{}", tsan_options);
2323

2424
let command = format!("{}/honggfuzz", HONGGFUZZ_TARGET);
25-
Command::new(&command) // exec honggfuzz replacing current process
25+
let err = Command::new(&command) // exec honggfuzz replacing current process
2626
.args(args)
2727
.env("ASAN_OPTIONS", asan_options)
2828
.env("TSAN_OPTIONS", tsan_options)
@@ -33,5 +33,6 @@ fn main() {
3333
"cannot execute {}, try to execute \"cargo hfuzz build\" from fuzzed project directory",
3434
&command,
3535
);
36+
eprintln!("{:?}", err);
3637
process::exit(1);
3738
}

0 commit comments

Comments
 (0)