Remember caught exception object
This commit is contained in:
parent
e3307dc9ac
commit
b93742c296
|
@ -85,8 +85,8 @@ namespace AssemblyData {
|
||||||
try {
|
try {
|
||||||
assembly = assemblyResolver.Load(filename);
|
assembly = assemblyResolver.Load(filename);
|
||||||
}
|
}
|
||||||
catch (BadImageFormatException) {
|
catch (BadImageFormatException ex) {
|
||||||
throw new ApplicationException(string.Format("Could not load assembly {0}. Maybe it's 32-bit or 64-bit only?", filename));
|
throw new ApplicationException(string.Format("Could not load assembly {0}. Maybe it's 32-bit or 64-bit only?", filename), ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user