Skip to content

Commit

Permalink
Fix exception message on unsupported request output format
Browse files Browse the repository at this point in the history
  • Loading branch information
ObsidianMinor committed Nov 19, 2019
1 parent e2e70a8 commit 71ac3e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csharp/src/Google.Protobuf.Conformance/Program.cs
Expand Up @@ -143,7 +143,7 @@ private static ConformanceResponse PerformRequest(ConformanceRequest request, Ty
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)
Expand Down

0 comments on commit 71ac3e5

Please sign in to comment.