println install failure

This commit is contained in:
rustdesk 2024-01-03 22:46:53 +08:00
parent 7e3a0c4ded
commit 7f7d4a77b6

View File

@ -190,7 +190,10 @@ pub fn core_main() -> Option<Vec<String>> {
); );
let text = match res { let text = match res {
Ok(_) => translate("Installation Successful!".to_string()), Ok(_) => translate("Installation Successful!".to_string()),
Err(_) => translate("Installation failed!".to_string()), Err(_) => {
println!("Failed with error: {err}");
translate("Installation failed!".to_string())
}
}; };
Toast::new(Toast::POWERSHELL_APP_ID) Toast::new(Toast::POWERSHELL_APP_ID)
.title(&hbb_common::config::APP_NAME.read().unwrap()) .title(&hbb_common::config::APP_NAME.read().unwrap())