From 747fbca1e80b0c051aa39ac3509e1d8cd1fa3d7f Mon Sep 17 00:00:00 2001 From: Alexander Polcyn Date: Thu, 17 May 2018 21:13:07 -0700 Subject: [PATCH] Add more details to a resource exhausted ruby error --- src/ruby/lib/grpc/generic/rpc_server.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ruby/lib/grpc/generic/rpc_server.rb b/src/ruby/lib/grpc/generic/rpc_server.rb index 31ab6a302b1..838ac45927b 100644 --- a/src/ruby/lib/grpc/generic/rpc_server.rb +++ b/src/ruby/lib/grpc/generic/rpc_server.rb @@ -364,7 +364,8 @@ module GRPC # sent yet c = ActiveCall.new(an_rpc.call, noop, noop, an_rpc.deadline, metadata_received: true, started: false) - c.send_status(GRPC::Core::StatusCodes::RESOURCE_EXHAUSTED, '') + c.send_status(GRPC::Core::StatusCodes::RESOURCE_EXHAUSTED, + 'No free threads in thread pool') nil end