From fdb31a027a99cdf344b148e0ac2f23bc40c8b4de Mon Sep 17 00:00:00 2001 From: Filip Leonarski Date: Wed, 26 Jul 2023 20:02:15 +0200 Subject: [PATCH] grpcToJson.h: Issue with newer gRPC and ToString() method --- common/grpcToJson.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/grpcToJson.h b/common/grpcToJson.h index bac0a040..334a64c8 100644 --- a/common/grpcToJson.h +++ b/common/grpcToJson.h @@ -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; }