diff options
author | 2016-05-07 16:18:43 -0700 | |
---|---|---|
committer | 2016-05-07 16:18:43 -0700 | |
commit | 1c51edc4bc7e44883e5acc3942104fafe35099c6 (patch) | |
tree | 2e2b9d4cfbde2475d858d0cc73f899ffa7c22814 /src/core/lib/iomgr/error.c | |
parent | 1aee5362f43ece8eb77ba219c163f1169d0d0b24 (diff) |
Progress converting to new error system
Diffstat (limited to 'src/core/lib/iomgr/error.c')
-rw-r--r-- | src/core/lib/iomgr/error.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/lib/iomgr/error.c b/src/core/lib/iomgr/error.c index bc50d6870f..cc0265737a 100644 --- a/src/core/lib/iomgr/error.c +++ b/src/core/lib/iomgr/error.c @@ -453,7 +453,9 @@ const char *grpc_error_string(grpc_error *err) { collect_kvs(err->ints.root, key_int, fmt_int, &kvs); collect_kvs(err->strs.root, key_str, fmt_str, &kvs); collect_kvs(err->times.root, key_time, fmt_time, &kvs); - append_kv(&kvs, gpr_strdup("referenced_errors"), errs_string(err)); + if (!gpr_avl_is_empty(err->errs)) { + append_kv(&kvs, gpr_strdup("referenced_errors"), errs_string(err)); + } qsort(kvs.kvs, kvs.num_kvs, sizeof(kv_pair), cmp_kvs); |