Skip to content

Commit

Permalink
Capture stdout as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
hans-olav authored and cmyr committed Nov 24, 2022
1 parent c7b94d8 commit 409b01e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/instruments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,9 @@ pub(crate) fn profile_target(
if !output.status.success() {
let stderr =
String::from_utf8(output.stderr).unwrap_or_else(|_| "failed to capture stderr".into());
return Err(anyhow!("instruments errored: {}", stderr));
let stdout =
String::from_utf8(output.stdout).unwrap_or_else(|_| "failed to capture stdout".into());
return Err(anyhow!("instruments errored: {} {}", stderr, stdout));
}

Ok(trace_filepath)
Expand Down

0 comments on commit 409b01e

Please sign in to comment.