]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
more error messages
authorAlan T. DeKok <aland@freeradius.org>
Tue, 31 Aug 2021 13:31:54 +0000 (09:31 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 31 Aug 2021 13:31:54 +0000 (09:31 -0400)
src/lib/unlang/compile.c

index 326f0e3c602be682c63ac9fc37d2b7f7741f49db..22fefae270801576777ef0dbfc659ce780a015c4 100644 (file)
@@ -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,