]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
clarify error messages
authorAlan T. DeKok <aland@freeradius.org>
Tue, 27 Aug 2024 13:37:35 +0000 (09:37 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 27 Aug 2024 20:01:08 +0000 (16:01 -0400)
src/lib/server/cf_file.c

index a9efe1dce722330c249aa729563b2c4c605ecee4..686f7d8a7d7528c778ba4babbc34440d564d85d7 100644 (file)
@@ -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");
        }
 
        /*