mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
23 lines
936 B
Diff
23 lines
936 B
Diff
|
From d30b04ed7b53f36fded3f94c32ebaed88cfa1232 Mon Sep 17 00:00:00 2001
|
||
|
From: Esun Kim <veblush@google.com>
|
||
|
Date: Wed, 17 Mar 2021 10:00:44 -0700
|
||
|
Subject: [PATCH] Fix status error (#25731)
|
||
|
|
||
|
---
|
||
|
test/cpp/qps/parse_json.cc | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/test/cpp/qps/parse_json.cc b/test/cpp/qps/parse_json.cc
|
||
|
index 8777f171420d..f3ac1052d4d5 100644
|
||
|
--- a/test/cpp/qps/parse_json.cc
|
||
|
+++ b/test/cpp/qps/parse_json.cc
|
||
|
@@ -34,7 +34,7 @@ void ParseJson(const std::string& json, const std::string& type,
|
||
|
auto status = JsonToBinaryString(
|
||
|
type_resolver.get(), "type.googleapis.com/" + type, json, &binary);
|
||
|
if (!status.ok()) {
|
||
|
- std::string errmsg(status.error_message());
|
||
|
+ std::string errmsg(status.message());
|
||
|
gpr_log(GPR_ERROR, "Failed to convert json to binary: errcode=%d msg=%s",
|
||
|
status.code(), errmsg.c_str());
|
||
|
gpr_log(GPR_ERROR, "JSON: %s", json.c_str());
|