Skip to content

Commit

Permalink
Throw exception without losing stack trace
Browse files Browse the repository at this point in the history
When using a FunctionInvocationFilterAttribute, exceptions are not keeping their stack trace due to this "thow exception".
  • Loading branch information
michaeltg17 authored and mathewc committed Oct 4, 2018
1 parent b7248b2 commit da4c069
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,7 @@ public async Task<object> InvokeAsync(object instance, object[] arguments)
// If a post-filter throws, capture that
if (exception != null)
{
throw exception;
ExceptionDispatchInfo.Capture(exception).Throw();
}
}
}
Expand Down

0 comments on commit da4c069

Please sign in to comment.