Skip to content

Commit f710c51

Browse files
Print out failed command in rustc-fake
1 parent 832ae49 commit f710c51

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

collector/src/bin/rustc-fake.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,9 @@ fn main() {
235235
#[cfg(unix)]
236236
fn exec(cmd: &mut Command) -> ! {
237237
use std::os::unix::prelude::*;
238+
let cmd_d = format!("{:?}", cmd);
238239
let error = cmd.exec();
239-
panic!("failed to exec: {}", error);
240+
panic!("failed to exec `{}`: {}", cmd_d, error);
240241
}
241242

242243
#[cfg(unix)]

0 commit comments

Comments
 (0)