aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-01-27 08:16:23 -0800
committerGravatar Craig Tiller <ctiller@google.com>2017-01-27 08:16:23 -0800
commita78da60a8ac8f8777aedc02e463f35c4e0cac906 (patch)
tree5c908fba74b5802bae798be265744b4953377920
parent68bb6a845344eddbc045094567a948a8fdda9fe7 (diff)
Add comment
-rw-r--r--src/core/lib/surface/call.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/lib/surface/call.c b/src/core/lib/surface/call.c
index e8a93b91bf..5519a1ec7e 100644
--- a/src/core/lib/surface/call.c
+++ b/src/core/lib/surface/call.c
@@ -989,6 +989,8 @@ static grpc_error *consolidate_batch_errors(batch_control *bctl) {
if (n == 0) {
return GRPC_ERROR_NONE;
} else if (n == 1) {
+ /* Skip creating a composite error in the case that only one error was
+ logged */
grpc_error *e = bctl->errors[0];
bctl->errors[0] = NULL;
return e;