Skip to content

Commit

Permalink
Fix status error (#25731)
Browse files Browse the repository at this point in the history
  • Loading branch information
veblush committed Mar 17, 2021
1 parent 21c83cb commit d30b04e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/cpp/qps/parse_json.cc
Expand Up @@ -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());
Expand Down

0 comments on commit d30b04e

Please sign in to comment.