Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Commit

Permalink
Change ExceptionHandled after reviewing MVC5
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanbrandenburg committed Jun 8, 2016
1 parent 13667d7 commit 90fa7c6
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,6 @@ private async Task InvokeResourceFilterAsync()
Debug.Assert(_exceptionContext != null);
if (_exceptionContext.Result != null)
{
_exceptionContext.ExceptionHandled = true;
// This means that exception filters returned a result to 'handle' an error.
// We're not interested in seeing the exception details since it was handled.
await InvokeResultAsync(_exceptionContext.Result);
Expand All @@ -355,7 +354,7 @@ private async Task InvokeResourceFilterAsync()
Result = _exceptionContext.Result,
};
}
else if (_exceptionContext.Exception != null)
else if (_exceptionContext.Exception != null && !_exceptionContext.ExceptionHandled)
{
// If we get here, this means that we have an unhandled exception.
// Exception filted didn't handle this, so send it on to resource filters.
Expand Down

0 comments on commit 90fa7c6

Please sign in to comment.