From 157a125894abf304276f354a6840158182448be6 Mon Sep 17 00:00:00 2001 From: de4dot Date: Wed, 28 Sep 2011 01:44:32 +0200 Subject: [PATCH] Catch all exceptions and print warning if load fails --- de4dot.code/FilesDeobfuscator.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/de4dot.code/FilesDeobfuscator.cs b/de4dot.code/FilesDeobfuscator.cs index 4a0e56c7..4ac801e5 100644 --- a/de4dot.code/FilesDeobfuscator.cs +++ b/de4dot.code/FilesDeobfuscator.cs @@ -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; }