Fix exception message on unsupported request output format

pull/6910/head
Sydney Acksman 5 years ago
parent e2e70a8a42
commit 71ac3e5c0e
  1. 2
      csharp/src/Google.Protobuf.Conformance/Program.cs

@ -143,7 +143,7 @@ namespace Google.Protobuf.Conformance
case global::Conformance.WireFormat.Protobuf:
return new ConformanceResponse { ProtobufPayload = message.ToByteString() };
default:
throw new Exception("Unsupported request output format: " + request.PayloadCase);
throw new Exception("Unsupported request output format: " + request.RequestedOutputFormat);
}
}
catch (InvalidOperationException e)

Loading…
Cancel
Save