]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
add more helpful error message
authorAlan T. DeKok <aland@freeradius.org>
Tue, 26 Aug 2025 12:34:26 +0000 (08:34 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 26 Aug 2025 14:38:52 +0000 (10:38 -0400)
src/lib/util/dict_fixup.c

index 47c5c630611510363843ac19cda2cd2a257ee305..667a92708b794b922cb0e987053244ffcdcc87b5 100644 (file)
@@ -190,6 +190,8 @@ int fr_dict_protocol_reference(fr_dict_attr_t const **da_p, fr_dict_attr_t const
                         *      Load the new dictionary, and mark it as loaded from our dictionary.
                         */
                        if (fr_dict_protocol_afrom_file(&dict, proto_name, NULL, (rel->dict)->root->name) < 0) {
+                               fr_strerror_printf_push("Perhaps there is a '.' missing before the attribute name in %.*s ?",
+                                                       (int) fr_sbuff_used(in), fr_sbuff_start(in));
                                return -1;
                        }