Catch all exceptions and print warning if load fails

This commit is contained in:
de4dot 2011-09-28 01:44:32 +02:00
parent 828a69fef7
commit 157a125894

View File

@ -167,8 +167,9 @@ namespace de4dot {
catch (BadImageFormatException) {
return; // Not a .NET file
}
catch (IOException) {
Log.w("Could not load file: {0}", file.Filename);
catch (Exception ex) {
Log.w("Could not load file: {0}. Use -v to see stack trace.", file.Filename);
Utils.printStackTrace(ex, Log.LogLevel.verbose);
return;
}