Browse Source

Fix exception message on unsupported request output format

Sydney Acksman 6 năm trước cách đây
mục cha
commit
71ac3e5c0e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      csharp/src/Google.Protobuf.Conformance/Program.cs

+ 1 - 1
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)