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

dont concatenate strings when status is OK

parent af3cc761
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,10 @@ namespace Grpc.Core.Internal
/// </summary>
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