[Fixes #7479] Unwrapping of TargetInvocationException causes partial stacktrace loss (#7550)

Fixes #7479
This commit is contained in:
Carl Woodhouse
2017-02-02 20:22:00 +00:00
committed by Sébastien Ros
parent 654a9e1884
commit 2c26c65f63

View File

@@ -70,7 +70,7 @@ namespace Orchard.DisplayManagement.Descriptors.ShapeAttributeStrategy {
catch(TargetInvocationException e) { catch(TargetInvocationException e) {
// Throwing a TIE here will probably kill the web process // Throwing a TIE here will probably kill the web process
// in Azure. For unknown reasons. // in Azure. For unknown reasons.
throw e.InnerException; throw new Exception(string.Concat("TargetInvocationException ", methodInfo.Name), e.InnerException);
} }
} }