self_update: show path to executable in case of updater failure

This commit is contained in:
Dirkjan Ochtman
2026-03-27 09:27:47 +01:00
parent ef27583cdb
commit 0a96a3388f

View File

@@ -129,7 +129,7 @@ pub(crate) fn run_update(setup_path: &Path) -> Result<utils::ExitCode> {
let status = Command::new(setup_path)
.arg("--self-replace")
.status()
.context("unable to run updater")?;
.context(format!("unable to run updater ({})", setup_path.display()))?;
if !status.success() {
bail!("self-updated failed to replace rustup executable");