ソースを参照

Fix exception message on unsupported request output format

Sydney Acksman 5 年 前
コミット
71ac3e5c0e
1 ファイル変更1 行追加1 行削除
  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)