jsonToGrpc.h: Some issues with conversion of error message to string between gRPC version
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@ T jsonToGrpc(const std::string& json) {
|
||||
|
||||
auto status = google::protobuf::util::JsonStringToMessage(json, &output, opts);
|
||||
if (!status.ok())
|
||||
throw JFJochException(JFJochExceptionCategory::JSON, "Error in generating ProtoBuf from JSON: " + status.message().ToString());
|
||||
throw JFJochException(JFJochExceptionCategory::JSON, "Error in generating ProtoBuf from JSON");
|
||||
return output;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user