grpcToJson.h: Issue with newer gRPC and ToString() method
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user