Skip to content
Snippets Groups Projects
Commit 1f7103a4 authored by Jan Tattermusch's avatar Jan Tattermusch Committed by GitHub
Browse files

Merge pull request #11241 from jtattermusch/string_concatenation_101

Dont concatenate strings when status is OK
parents 5937cdd7 1de945b3
No related branches found
No related tags found
No related merge requests found
...@@ -72,7 +72,10 @@ namespace Grpc.Core.Internal ...@@ -72,7 +72,10 @@ namespace Grpc.Core.Internal
/// </summary> /// </summary>
public static void CheckOk(this CallError callError) public static void CheckOk(this CallError callError)
{ {
GrpcPreconditions.CheckState(callError == CallError.OK, "Call error: " + callError); if (callError != CallError.OK)
{
throw new InvalidOperationException("Call error: " + callError);
}
} }
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment