dont concatenate strings when status is OK

pull/11241/head
Jan Tattermusch 8 years ago
parent af3cc761ad
commit 1de945b378
  1. 5
      src/csharp/Grpc.Core/Internal/CallError.cs

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

Loading…
Cancel
Save