Remember caught exception object

This commit is contained in:
de4dot 2014-02-15 21:14:59 +01:00
parent e3307dc9ac
commit b93742c296

View File

@ -85,8 +85,8 @@ namespace AssemblyData {
try {
assembly = assemblyResolver.Load(filename);
}
catch (BadImageFormatException) {
throw new ApplicationException(string.Format("Could not load assembly {0}. Maybe it's 32-bit or 64-bit only?", filename));
catch (BadImageFormatException ex) {
throw new ApplicationException(string.Format("Could not load assembly {0}. Maybe it's 32-bit or 64-bit only?", filename), ex);
}
}
}