From: Amos Jeffries Date: Tue, 6 Aug 2024 23:17:16 +0000 (+0000) Subject: Maintenance: Replace one self_destruct() with throw (#1871) X-Git-Tag: SQUID_6_11~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60f3dedbd04c2c8ccc2242ce447010ac3c5ec869;p=thirdparty%2Fsquid.git Maintenance: Replace one self_destruct() with throw (#1871) --- diff --git a/src/acl/Acl.cc b/src/acl/Acl.cc index c0704f57ce..2d2b355ea0 100644 --- a/src/acl/Acl.cc +++ b/src/acl/Acl.cc @@ -53,11 +53,8 @@ ACL * 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()); ACL *result = (pos->second)(pos->first); debugs(28, 4, typeName << '=' << result);