Skip to content

Commit d4bcdf8

Browse files
authored
install: Fix check for windows build (pyth-network#295)
1 parent 67c3bff commit d4bcdf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install/src/command.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,7 @@ pub fn init_or_update(config_file: &str, is_init: bool, check_only: bool) -> Res
11731173
)
11741174
.map_err(|err| match err.raw_os_error() {
11751175
#[cfg(windows)]
1176-
Some(os_err) if os_err == winapi::shared::winerror::ERROR_PRIVILEGE_NOT_HELD => {
1176+
Some(os_err) if os_err == winapi::shared::winerror::ERROR_PRIVILEGE_NOT_HELD as i32 => {
11771177
"You need to run this command with administrator privileges.".to_string()
11781178
}
11791179
_ => format!(

0 commit comments

Comments
 (0)