Skip to content

Commit 82d5531

Browse files
cargo-hfuzz: use return value of Command::exec
1 parent 631357b commit 82d5531

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/cargo-hfuzz.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ where
170170
});
171171

172172
let command = format!("{}/honggfuzz", &honggfuzz_target);
173-
Command::new(&command) // exec honggfuzz replacing current process
173+
let err = Command::new(&command) // exec honggfuzz replacing current process
174174
.args(&[
175175
"-W",
176176
&format!("{}/{}", &honggfuzz_workspace, target),
@@ -196,6 +196,7 @@ where
196196

197197
// code flow will only reach here if honggfuzz failed to execute
198198
eprintln!("cannot execute {}, try to execute \"cargo hfuzz build\" from fuzzed project directory", &command);
199+
eprintln!("{:?}", err);
199200
process::exit(1);
200201
}
201202
}

0 commit comments

Comments
 (0)