grpcToJson.h: Issue with newer gRPC and ToString() method

This commit is contained in:
2023-07-26 20:02:15 +02:00
parent 9d1add32e5
commit fdb31a027a
+1 -1
View File
@@ -18,7 +18,7 @@ inline std::string grpcToJson(const google::protobuf::Message &message) {
std::string s;
auto status = google::protobuf::util::MessageToJsonString(message, &s, opts);
if (!status.ok())
throw JFJochException(JFJochExceptionCategory::JSON, "Error in generating JSON from ProtoBuf: " + status.message().ToString());
throw JFJochException(JFJochExceptionCategory::JSON, "Error in generating JSON from ProtoBuf");
return s;
}