From: Alan T. DeKok Date: Wed, 25 Aug 2021 12:54:42 +0000 (-0400) Subject: better error messages. Fixes #4204 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c5857c243cb37058d5bd9dbf431bb4bebe58e06;p=thirdparty%2Ffreeradius-server.git better error messages. Fixes #4204 --- diff --git a/src/lib/unlang/compile.c b/src/lib/unlang/compile.c index d8de6d43250..44388342c50 100644 --- a/src/lib/unlang/compile.c +++ b/src/lib/unlang/compile.c @@ -3685,6 +3685,18 @@ check_for_module: if (realname != name) { cf_log_warn(ci, "Ignoring \"%s\" as the \"%s\" module is not enabled.", name, realname); return UNLANG_IGNORE; + + } + + /* + * The module exists, but it does not have the + * named method. + */ + if (!unlang_ctx2.section_name1) { + cf_log_err(ci, "The '%s' module does not have a '%s %s' method.", + name, unlang_ctx->section_name1, + unlang_ctx->section_name2 ? unlang_ctx->section_name2 : ""); + return NULL; } /*