From: Alan T. DeKok Date: Tue, 27 Aug 2024 13:37:35 +0000 (-0400) Subject: clarify error messages X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5dd617b8485b9a29abb98ed8703a42dc6c3d39eb;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 a9efe1dce72..686f7d8a7d7 100644 --- a/src/lib/server/cf_file.c +++ b/src/lib/server/cf_file.c @@ -1614,7 +1614,7 @@ static CONF_ITEM *process_if(cf_stack_t *stack) * Anything other than EOL is a problem at this point. */ if (*p) { - fr_strerror_const("Unexpected text"); + fr_strerror_const("Unexpected text after condition"); goto error; } @@ -2733,7 +2733,7 @@ added_pair: * error. */ if (*ptr && (*ptr != '#')) { - return parse_error(stack, ptr, "Unexpected text"); + return parse_error(stack, ptr, "Unexpected text after configuration item"); } /*