Skip to content

Commit c31fc7d

Browse files
committed
minor clarification of existing error messages
1 parent cfb57e3 commit c31fc7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

collector/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -526,16 +526,16 @@ fn get_local_toolchain(
526526
let output = Command::new("rustup")
527527
.args(&["which", "cargo", "--toolchain=nightly"])
528528
.output()
529-
.context("failed to run `rustup which cargo`")?;
529+
.context("failed to run `rustup which cargo --toolchain=nightly`")?;
530530
if !output.status.success() {
531531
anyhow::bail!(
532-
"`rustup which cargo` exited with status {}\nstderr={}",
532+
"`rustup which cargo --toolchain=nightly` exited with status {}\nstderr={}",
533533
output.status,
534534
String::from_utf8_lossy(&output.stderr)
535535
)
536536
}
537537
let s = String::from_utf8(output.stdout)
538-
.context("failed to convert `rustup which cargo` output to utf8")?;
538+
.context("failed to convert `rustup which cargo --toolchain=nightly` output to utf8")?;
539539

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

0 commit comments

Comments
 (0)