Skip to content

Commit 93f5668

Browse files
authored
Merge pull request #844 from Pyrobolser/patch-1
Change error message in FlurlClientCache.Get if client exists but disposed
2 parents da6121b + af02ad9 commit 93f5668

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Flurl.Http/Configuration/FlurlClientCache.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public virtual IFlurlClient Get(string name) {
8585
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.");
8686

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

9090
return cli.Value;
9191
}

0 commit comments

Comments
 (0)