Skip to content

Commit e652f88

Browse files
committed
Add track_caller to builder_helper::output
If something goes wrong here, showing `fn output` is unhelpful. Show where the command is being run instead.
1 parent 3e827cc commit e652f88

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/build_helper/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ pub fn make(host: &str) -> PathBuf {
130130
}
131131
}
132132

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

0 commit comments

Comments
 (0)