install: Fix check for windows build (#295)
This commit is contained in:
parent
01e48239be
commit
e39bd8d11d
|
@ -1173,7 +1173,7 @@ pub fn init_or_update(config_file: &str, is_init: bool, check_only: bool) -> Res
|
|||
)
|
||||
.map_err(|err| match err.raw_os_error() {
|
||||
#[cfg(windows)]
|
||||
Some(os_err) if os_err == winapi::shared::winerror::ERROR_PRIVILEGE_NOT_HELD => {
|
||||
Some(os_err) if os_err == winapi::shared::winerror::ERROR_PRIVILEGE_NOT_HELD as i32 => {
|
||||
"You need to run this command with administrator privileges.".to_string()
|
||||
}
|
||||
_ => format!(
|
||||
|
|
Loading…
Reference in New Issue