From 75005775938c8844d42946f92b052fd1be79a0a9 Mon Sep 17 00:00:00 2001 From: Vijay Pai Date: Tue, 9 Jan 2018 10:55:37 -0800 Subject: Address review feedback; stop using result of 'what' --- include/grpc++/impl/codegen/method_handler_impl.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'include/grpc++') diff --git a/include/grpc++/impl/codegen/method_handler_impl.h b/include/grpc++/impl/codegen/method_handler_impl.h index ed6c146e6c..daf090f86c 100644 --- a/include/grpc++/impl/codegen/method_handler_impl.h +++ b/include/grpc++/impl/codegen/method_handler_impl.h @@ -40,10 +40,8 @@ Status CatchingFunctionHandler(Callable&& handler) { #if GRPC_ALLOW_EXCEPTIONS try { return handler(); - } catch (const std::exception& e) { - return Status(StatusCode::UNKNOWN, e.what()); } catch (...) { - return Status(StatusCode::UNKNOWN, "Exception in method handler"); + return Status(StatusCode::UNKNOWN, "Unexpected error in RPC handling"); } #else // GRPC_ALLOW_EXCEPTIONS return handler(); -- cgit v1.2.3