Skip to content

Commit abd63d8

Browse files
committed
feat(self-update): improve error messages on Windows
1 parent 3179c35 commit abd63d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cli/self_update/windows.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ fn rustup_uninstall_reg_key() -> Result<RegKey> {
510510
pub(crate) fn do_update_programs_display_version(version: &str) -> Result<()> {
511511
rustup_uninstall_reg_key()?
512512
.set_value("DisplayVersion", &version)
513-
.context("Failed to set display version")
513+
.context("Failed to set `DisplayVersion`")
514514
}
515515

516516
pub(crate) fn do_add_to_programs() -> Result<()> {
@@ -542,9 +542,9 @@ pub(crate) fn do_add_to_programs() -> Result<()> {
542542
};
543543

544544
key.set_raw_value("UninstallString", &reg_value)
545-
.context("Failed to set uninstall string")?;
545+
.context("Failed to set `UninstallString`")?;
546546
key.set_value("DisplayName", &"Rustup: the Rust toolchain installer")
547-
.context("Failed to set display name")?;
547+
.context("Failed to set `DisplayName`")?;
548548
do_update_programs_display_version(env!("CARGO_PKG_VERSION"))?;
549549

550550
Ok(())

0 commit comments

Comments
 (0)