Skip to content

minor clarification of existing error messages #1364

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions collector/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -526,16 +526,16 @@ fn get_local_toolchain(
let output = Command::new("rustup")
.args(&["which", "cargo", "--toolchain=nightly"])
.output()
.context("failed to run `rustup which cargo`")?;
.context("failed to run `rustup which cargo --toolchain=nightly`")?;
if !output.status.success() {
anyhow::bail!(
"`rustup which cargo` exited with status {}\nstderr={}",
"`rustup which cargo --toolchain=nightly` exited with status {}\nstderr={}",
output.status,
String::from_utf8_lossy(&output.stderr)
)
}
let s = String::from_utf8(output.stdout)
.context("failed to convert `rustup which cargo` output to utf8")?;
.context("failed to convert `rustup which cargo --toolchain=nightly` output to utf8")?;

let cargo = PathBuf::from(s.trim());
debug!("found cargo: {:?}", &cargo);
Expand Down