From 4b1c8bcac3d5ce0c3b32337872eb2adf8c3171d1 Mon Sep 17 00:00:00 2001 From: alyssawilk Date: Tue, 7 May 2024 10:13:39 -0400 Subject: [PATCH] Hcm: removing a throw-or-panic (#33973) hcm: removing exceptions Signed-off-by: Alyssa Wilk --- .../filters/network/http_connection_manager/config.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/extensions/filters/network/http_connection_manager/config.cc b/source/extensions/filters/network/http_connection_manager/config.cc index 2f1512e896f1..4d27c99c252f 100644 --- a/source/extensions/filters/network/http_connection_manager/config.cc +++ b/source/extensions/filters/network/http_connection_manager/config.cc @@ -542,7 +542,8 @@ HttpConnectionManagerConfig::HttpConnectionManagerConfig( case envoy::extensions::filters::network::http_connection_manager::v3::HttpConnectionManager:: RouteSpecifierCase::kScopedRoutes: if (!srds_factory || !scoped_routes_config_provider_manager_) { - throwEnvoyExceptionOrPanic("SRDS configured but not compiled in"); + creation_status = absl::InvalidArgumentError("SRDS configured but not compiled in"); + return; } scoped_routes_config_provider_ = srds_factory->createConfigProvider(config, context_.serverFactoryContext(), stats_prefix_,