aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++
diff options
context:
space:
mode:
authorGravatar Vijay Pai <vpai@google.com>2018-01-09 10:55:37 -0800
committerGravatar Vijay Pai <vpai@google.com>2018-01-09 10:55:37 -0800
commit75005775938c8844d42946f92b052fd1be79a0a9 (patch)
tree04a85af496559d2dc65514774e879d19dd2ed354 /include/grpc++
parent9d2d84382e317e5c8a149c497bfe9408af12b038 (diff)
Address review feedback; stop using result of 'what'
Diffstat (limited to 'include/grpc++')
-rw-r--r--include/grpc++/impl/codegen/method_handler_impl.h4
1 files changed, 1 insertions, 3 deletions
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();