Skip to content

Commit

Permalink
Update FlurlClientCache.cs
Browse files Browse the repository at this point in the history
Tiny typo that I just noticed when migrating from 3.x and away from FlurlClientFactoryBase.
Apologies if I misunderstood and that's actually not a typo
  • Loading branch information
Pyrobolser authored Oct 10, 2024
1 parent da6121b commit af02ad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Flurl.Http/Configuration/FlurlClientCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public virtual IFlurlClient Get(string name) {
throw new ArgumentException($"A client named '{name}' was not found. Either preconfigure the client using Add (typically at startup), or use GetOrAdd to add/configure one on demand when needed.");

if (cli.Value.IsDisposed)
throw new Exception($"A client named '{name}' was not found but has been disposed and cannot be reused.");
throw new Exception($"A client named '{name}' was found but has been disposed and cannot be reused.");

return cli.Value;
}
Expand Down

0 comments on commit af02ad9

Please sign in to comment.