summaryrefslogtreecommitdiff
path: root/grpc/test/core/security/json_token_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'grpc/test/core/security/json_token_test.cc')
-rw-r--r--grpc/test/core/security/json_token_test.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/grpc/test/core/security/json_token_test.cc b/grpc/test/core/security/json_token_test.cc
index 6b032bb7..1ded259b 100644
--- a/grpc/test/core/security/json_token_test.cc
+++ b/grpc/test/core/security/json_token_test.cc
@@ -215,11 +215,12 @@ static Json parse_json_part_from_jwt(const char* str, size_t len) {
grpc_slice slice = grpc_base64_decode(b64, 1);
gpr_free(b64);
GPR_ASSERT(!GRPC_SLICE_IS_EMPTY(slice));
- grpc_error* error = GRPC_ERROR_NONE;
+ grpc_error_handle error = GRPC_ERROR_NONE;
absl::string_view string = grpc_core::StringViewFromSlice(slice);
Json json = Json::Parse(string, &error);
if (error != GRPC_ERROR_NONE) {
- gpr_log(GPR_ERROR, "JSON parse error: %s", grpc_error_string(error));
+ gpr_log(GPR_ERROR, "JSON parse error: %s",
+ grpc_error_std_string(error).c_str());
GRPC_ERROR_UNREF(error);
}
grpc_slice_unref(slice);