Remove all exceptions inside dumpers.

This commit is contained in:
2019-04-20 14:02:25 +01:00
parent b5162fd4be
commit 552bb57514
10 changed files with 115 additions and 61 deletions

View File

@@ -109,7 +109,8 @@ namespace DiscImageChef.Core.Devices.Dumping
default:
dumpLog.WriteLine("Unknown device type.");
dumpLog.Close();
throw new NotSupportedException("Unknown device type.");
StoppingErrorMessage?.Invoke("Unknown device type.");
return;
}
dumpLog.Close();