Merge pull request #11241 from jtattermusch/string_concatenation_101

Dont concatenate strings when status is OK
pull/11248/head
Jan Tattermusch 8 years ago committed by GitHub
commit 1f7103a42f
  1. 5
      src/csharp/Grpc.Core/Internal/CallError.cs

@ -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);
}
} }
} }
} }

Loading…
Cancel
Save