Add IOException type write protection check

per recent forum thread
This commit is contained in:
Kurt 2017-05-10 18:52:49 -07:00
parent 5a96169cc2
commit 6d9cbaaec0

View File

@ -3424,7 +3424,7 @@ private void clickExportSAV(object sender, EventArgs e)
}
catch (Exception x)
{
if (x is UnauthorizedAccessException || x is FileNotFoundException)
if (x is UnauthorizedAccessException || x is FileNotFoundException || x is IOException)
WinFormsUtil.Error("Unable to save." + Environment.NewLine + x.Message,
"If destination is a removable disk (SD card), please ensure the write protection switch is not set.");
else throw;