aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++
diff options
context:
space:
mode:
Diffstat (limited to 'include/grpc++')
-rw-r--r--include/grpc++/impl/codegen/method_handler_impl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/grpc++/impl/codegen/method_handler_impl.h b/include/grpc++/impl/codegen/method_handler_impl.h
index 41c287231f..ed6c146e6c 100644
--- a/include/grpc++/impl/codegen/method_handler_impl.h
+++ b/include/grpc++/impl/codegen/method_handler_impl.h
@@ -45,9 +45,9 @@ Status CatchingFunctionHandler(Callable&& handler) {
} catch (...) {
return Status(StatusCode::UNKNOWN, "Exception in method handler");
}
-#else
+#else // GRPC_ALLOW_EXCEPTIONS
return handler();
-#endif
+#endif // GRPC_ALLOW_EXCEPTIONS
}
/// A wrapper class of an application provided rpc method handler.