Skip to content

Commit

Permalink
Add track_caller to builder_helper::output
Browse files Browse the repository at this point in the history
If something goes wrong here, showing `fn output` is unhelpful. Show
where the command is being run instead.
  • Loading branch information
jyn514 committed May 20, 2021
1 parent 3e827cc commit e652f88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/build_helper/lib.rs
Expand Up @@ -130,6 +130,7 @@ pub fn make(host: &str) -> PathBuf {
}
}

#[track_caller]
pub fn output(cmd: &mut Command) -> String {
let output = match cmd.stderr(Stdio::inherit()).output() {
Ok(status) => status,
Expand Down

0 comments on commit e652f88

Please sign in to comment.