From f5d4fc4f3caa293baae0fec138c1031bc4808774 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Tue, 6 Aug 2024 23:17:16 +0000 Subject: [PATCH] Maintenance: Replace one self_destruct() with throw (#1871) --- src/acl/Acl.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/acl/Acl.cc b/src/acl/Acl.cc index 2d07d3fc9a..d48b5c0813 100644 --- a/src/acl/Acl.cc +++ b/src/acl/Acl.cc @@ -61,11 +61,8 @@ Acl::Node * Make(TypeName typeName) { const auto pos = TheMakers().find(typeName); - if (pos == TheMakers().end()) { - debugs(28, DBG_CRITICAL, "FATAL: Invalid ACL type '" << typeName << "'"); - self_destruct(); - assert(false); // not reached - } + if (pos == TheMakers().end()) + throw TextException(ToSBuf("invalid ACL type '", typeName, "'"), Here()); auto *result = (pos->second)(pos->first); debugs(28, 4, typeName << '=' << result); -- 2.47.2