Skip to content
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
10 changes: 7 additions & 3 deletions install/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1171,13 +1171,17 @@ pub fn init_or_update(config_file: &str, is_init: bool, check_only: bool) -> Res
release_dir.join("solana-release"),
config.active_release_dir(),
)
.map_err(|err| {
format!(
.map_err(|err| match err.raw_os_error() {
#[cfg(windows)]
Some(os_err) if os_err == winapi::shared::winerror::ERROR_PRIVILEGE_NOT_HELD => {
"You need to run this command with administrator privileges.".to_string()
}
_ => format!(
"Unable to symlink {:?} to {:?}: {}",
release_dir,
config.active_release_dir(),
err
)
),
})?;

config.save(config_file)?;
Expand Down