From: Alan T. DeKok Date: Tue, 31 Aug 2021 13:31:54 +0000 (-0400) Subject: more error messages X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb7e9a2112a9c1210d6fc62121900c99bcd05d58;p=thirdparty%2Ffreeradius-server.git more error messages --- diff --git a/src/lib/unlang/compile.c b/src/lib/unlang/compile.c index 326f0e3c602..22fefae2708 100644 --- a/src/lib/unlang/compile.c +++ b/src/lib/unlang/compile.c @@ -3587,6 +3587,11 @@ static unlang_t *compile_module(unlang_t *parent, unlang_compile_t *unlang_ctx, cf_log_err(ci, "The \"%s\" module does not have a '%s %s' method.", inst->module->name, unlang_ctx->section_name1, unlang_ctx->section_name2); + + } else if (!unlang_ctx->section_name1) { + cf_log_err(ci, "The \"%s\" module cannot be called as '%s'.", + inst->module->name, realname); + } else { cf_log_err(ci, "The \"%s\" module does not have a '%s' method.", inst->module->name,