Skip to content

Commit

Permalink
fix: add context to dfx cache installation message (#3812)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericswanson-dfinity authored Jun 28, 2024
1 parent 456c20f commit 416959b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dfx/src/config/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,12 @@ pub fn install_version(v: &str, force: bool) -> Result<PathBuf, CacheError> {

if dfx_core::fs::rename(temp_p.as_path(), &p).is_ok() {
if let Some(b) = b {
b.finish_with_message(format!("Version v{} installed successfully.", v));
b.finish_with_message(format!("Installed dfx {} to cache.", v));
}
} else {
dfx_core::fs::remove_dir_all(temp_p.as_path()).map_err(UnifiedIoError::from)?;
if let Some(b) = b {
b.finish_with_message(format!("Version v{} was already installed.", v));
b.finish_with_message(format!("dfx {} was already installed in cache.", v));
}
}
Ok(p)
Expand Down

0 comments on commit 416959b

Please sign in to comment.