diff --git a/src/instruments.rs b/src/instruments.rs index 1f277c5..7eb4efe 100644 --- a/src/instruments.rs +++ b/src/instruments.rs @@ -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)