Skip to content

Commit

Permalink
Hcm: removing a throw-or-panic (envoyproxy#33973)
Browse files Browse the repository at this point in the history
hcm: removing exceptions

Signed-off-by: Alyssa Wilk <[email protected]>
  • Loading branch information
alyssawilk authored May 7, 2024
1 parent a96b7ad commit 4b1c8bc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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_,
Expand Down

0 comments on commit 4b1c8bc

Please sign in to comment.