Fix status error (#25731)

pull/25745/head
Esun Kim 4 years ago committed by GitHub
parent 21c83cbb08
commit d30b04ed7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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());

Loading…
Cancel
Save