Skip to content

Commit

Permalink
chore: include rustc --version stderr in panic (#1968)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Jan 23, 2025
1 parent 080a7a8 commit ab3b5cc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/build/src/command/local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ pub(crate) fn create_local_command(
.expect("rustc --version should succeed");

if !output.status.success() {
panic!("Failed to run rustc --version {:?}", String::from_utf8_lossy(&output.stdout));
panic!(
"Failed to run rustc --version {:?}\n{:?}",
String::from_utf8_lossy(&output.stdout),
String::from_utf8_lossy(&output.stderr)
);
}

let stdout_string =
Expand Down

0 comments on commit ab3b5cc

Please sign in to comment.