Remove get_error() in windows.rs

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-11-20 17:38:53 +08:00
parent c6d587f0c7
commit 2aaca0c54a
5 changed files with 39 additions and 80 deletions

View File

@@ -266,7 +266,7 @@ impl PrivacyModeImpl {
CloseHandle(token);
if 0 == create_res {
bail!(
"Failed to create privacy window process {}, error {:?}",
"Failed to create privacy window process {}, error {}",
cmdline,
Error::last_os_error()
);
@@ -284,7 +284,7 @@ impl PrivacyModeImpl {
CloseHandle(proc_info.hProcess);
bail!(
"Failed to create privacy window process, error {:?}",
"Failed to create privacy window process, error {}",
Error::last_os_error()
);
}