mirror of
https://github.com/alterware/alterware-launcher.git
synced 2026-11-25 11:48:41 +00:00
don't panic if cleaning up left over files fails
This commit is contained in:
1 parent
0c004b6f0f
commit
8cc1047367
1 file changed
+3
-1
+3
-1
@@ -43,7 +43,9 @@ pub fn run(update_only: bool) {
|
||||
&& (file_name.contains(".__relocated__.exe")
|
||||
|| file_name.contains(".__selfdelete__.exe"))
|
||||
{
|
||||
fs::remove_file(file.path()).unwrap();
|
||||
fs::remove_file(file.path()).unwrap_or_else(|_| {
|
||||
println!("Failed to remove old launcher file.");
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user