diff options
Diffstat (limited to 'grpc/src/cpp/common/validate_service_config.cc')
-rw-r--r-- | grpc/src/cpp/common/validate_service_config.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/grpc/src/cpp/common/validate_service_config.cc b/grpc/src/cpp/common/validate_service_config.cc index 720c0907..cac39ad9 100644 --- a/grpc/src/cpp/common/validate_service_config.cc +++ b/grpc/src/cpp/common/validate_service_config.cc @@ -25,12 +25,12 @@ namespace grpc { namespace experimental { std::string ValidateServiceConfigJSON(const std::string& service_config_json) { grpc_init(); - grpc_error* error = GRPC_ERROR_NONE; + grpc_error_handle error = GRPC_ERROR_NONE; grpc_core::ServiceConfig::Create(/*args=*/nullptr, service_config_json.c_str(), &error); std::string return_value; if (error != GRPC_ERROR_NONE) { - return_value = grpc_error_string(error); + return_value = grpc_error_std_string(error); GRPC_ERROR_UNREF(error); } grpc_shutdown(); |