Skip to content
This repository was archived by the owner on Aug 23, 2025. It is now read-only.

Commit 67057e0

Browse files
committed
Version 1.5.4
Fixed issue #63
1 parent f76f58a commit 67057e0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

86BoxManager/frmMain.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -925,12 +925,17 @@ private void VMRemove()
925925
}
926926
catch (UnauthorizedAccessException) //Files are read-only or protected by privileges
927927
{
928-
MessageBox.Show("86Box Manager was unable to delete the files of this virtual machine, because they are set as read-only or you don't have sufficient privileges to delete them.\n\nMake sure the files are free for deletion, then remove them manually.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
928+
MessageBox.Show("86Box Manager was unable to delete the files of this virtual machine because they are read-only or you don't have sufficient privileges to delete them.\n\nMake sure the files are free for deletion, then remove them manually.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
929+
return;
930+
}
931+
catch (DirectoryNotFoundException) //Directory not found
932+
{
933+
MessageBox.Show("86Box Manager was unable to delete the files of this virtual machine because they no longer exist.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
929934
return;
930935
}
931936
catch (IOException) //Files are in use by another process
932937
{
933-
MessageBox.Show("86Box Manager was unable to delete the files of this virtual machine, because they are currently in use by another process.\n\nMake sure the files are free for deletion, then remove them manually.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
938+
MessageBox.Show("86Box Manager was unable to delete some files of this virtual machine because they are currently in use by another process.\n\nMake sure the files are free for deletion, then remove them manually.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
934939
return;
935940
}
936941
catch (Exception ex) { //Other exceptions

0 commit comments

Comments
 (0)