]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
clarify error messages
authorAlan T. DeKok <aland@freeradius.org>
Wed, 8 Sep 2021 14:18:11 +0000 (10:18 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 8 Sep 2021 14:18:11 +0000 (10:18 -0400)
src/lib/server/cf_file.c

index 85986677970c860053e4b64b6848d5c9ee2cbda0..1aaae5fa00d6e9510ebb7b79ae1db83115f5ab87 100644 (file)
@@ -1124,14 +1124,14 @@ static int process_template(cf_stack_t *stack)
 
        templatecs = cf_section_find(parent_cs, "templates", NULL);
        if (!templatecs) {
-               ERROR("%s[%d]: No \"templates\" section for reference \"%s\"",
+               ERROR("%s[%d]: Cannot find template \"%s\", as no 'templates' section exists.",
                      frame->filename, frame->lineno, stack->buff[2]);
                return -1;
        }
 
        ci = cf_reference_item(parent_cs, templatecs, stack->buff[2]);
        if (!ci || (ci->type != CONF_ITEM_SECTION)) {
-               ERROR("%s[%d]: Reference \"%s\" not found",
+               ERROR("%s[%d]: No such template \"%s\" in the 'templates' section.",
                      frame->filename, frame->lineno, stack->buff[2]);
                return -1;
        }