diff options
author | Sree Kuchibhotla <sreek@google.com> | 2016-11-21 12:17:59 -0800 |
---|---|---|
committer | Sree Kuchibhotla <sreek@google.com> | 2016-11-21 12:17:59 -0800 |
commit | 2bf8573e9254a7d3cc651ad00ade2e7419233afa (patch) | |
tree | 10c771b53d0b1133d1636cbeb17cc9d72e1dcc88 /src/core/lib/iomgr | |
parent | a0749a6fe80cacb5698da5b07d0c3174d500b66b (diff) | |
parent | 2ef2d2a516344f3f46858e8badda842ee6a69d18 (diff) |
Merge branch 'master' into pss_pi
Diffstat (limited to 'src/core/lib/iomgr')
-rw-r--r-- | src/core/lib/iomgr/tcp_client_posix.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/lib/iomgr/tcp_client_posix.c b/src/core/lib/iomgr/tcp_client_posix.c index 13347735df..a3a70a8ed7 100644 --- a/src/core/lib/iomgr/tcp_client_posix.c +++ b/src/core/lib/iomgr/tcp_client_posix.c @@ -251,8 +251,11 @@ finish: done = (--ac->refs == 0); gpr_mu_unlock(&ac->mu); if (error != GRPC_ERROR_NONE) { - error = grpc_error_set_str(error, GRPC_ERROR_STR_DESCRIPTION, - "Failed to connect to remote host"); + char *error_descr; + gpr_asprintf(&error_descr, "Failed to connect to remote host: %s", + grpc_error_get_str(error, GRPC_ERROR_STR_DESCRIPTION)); + error = grpc_error_set_str(error, GRPC_ERROR_STR_DESCRIPTION, error_descr); + gpr_free(error_descr); error = grpc_error_set_str(error, GRPC_ERROR_STR_TARGET_ADDRESS, ac->addr_str); } |