From: Alan T. DeKok Date: Wed, 8 Sep 2021 14:18:11 +0000 (-0400) Subject: clarify error messages X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71bf3db8fe62c3685e4660b1d4dc1b39ade354f3;p=thirdparty%2Ffreeradius-server.git clarify error messages --- diff --git a/src/lib/server/cf_file.c b/src/lib/server/cf_file.c index 85986677970..1aaae5fa00d 100644 --- a/src/lib/server/cf_file.c +++ b/src/lib/server/cf_file.c @@ -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; }