aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-07-12 16:08:13 -0700
committerGravatar Craig Tiller <ctiller@google.com>2016-07-12 16:08:13 -0700
commitbdfa39c3cf53f75446ebafd73bd4b24118a24771 (patch)
treeb90aa7f6504bcccbfc02b6beba87edf995c177dc
parentb19dbead674b44df9a54e238e49a64c64b373c83 (diff)
Better error message
-rw-r--r--src/core/lib/surface/server.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/lib/surface/server.c b/src/core/lib/surface/server.c
index 54f7e3ae0b..d4421be936 100644
--- a/src/core/lib/surface/server.c
+++ b/src/core/lib/surface/server.c
@@ -1321,7 +1321,9 @@ static grpc_call_error queue_call_request(grpc_exec_ctx *exec_ctx,
if (request_id == -1) {
/* out of request ids: just fail this one */
fail_call(exec_ctx, server, cq_idx, rc,
- GRPC_ERROR_CREATE("Server Shutdown"));
+ grpc_error_set_int(GRPC_ERROR_CREATE("Out of request ids"),
+ GRPC_ERROR_INT_LIMIT,
+ server->max_requested_calls_per_cq));
return GRPC_CALL_OK;
}
switch (rc->type) {