Skip to content

Commit

Permalink
Update docs source
Browse files Browse the repository at this point in the history
Rename exception variable.
  • Loading branch information
martincostello committed Sep 27, 2023
1 parent ef00136 commit 3254c53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Snippets/Docs/Fallback.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ public static async ValueTask<HttpResponseMessage> Action()
return Outcome.FromResult(result);
}, context, "state");

if (outcome.Exception is HttpRequestException hre)
if (outcome.Exception is HttpRequestException httpEx)
{
throw new CustomNetworkException("Replace thrown exception", hre);
throw new CustomNetworkException("Replace thrown exception", httpEx);
}

ResilienceContextPool.Shared.Return(context);
Expand Down

0 comments on commit 3254c53

Please sign in to comment.