]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
update error messages
authorAlan T. DeKok <aland@freeradius.org>
Thu, 7 Jan 2021 17:18:37 +0000 (12:18 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 7 Jan 2021 20:50:11 +0000 (15:50 -0500)
src/lib/server/cond_tokenize.c
src/tests/unit/condition/base.txt

index 6c93cf5b40aa2233ad0fb8d3eb2f6ba199d7de76..e4a58ecb4cf0890b029e31388f064bbd3eabefa3 100644 (file)
@@ -1557,7 +1557,7 @@ static ssize_t cond_tokenize(TALLOC_CTX *ctx, fr_cond_t **out,
                };
 
                if (rhs->cast != FR_TYPE_INVALID) {
-                       fr_strerror_const("Unexpected cast");
+                       fr_strerror_const("Unexpected cast in right side of comparison");
                        fr_sbuff_set(&our_in, &m_rhs_cast);
                        goto error;
                }
index 2fcc42034f151012b7b9790fd1acb83c660a8c10..fb94d59a37f37f976c7cee13df9fc3d647bc7537 100644 (file)
@@ -139,7 +139,7 @@ condition <ipaddr>&Filter-Id == &Framed-IP-Address
 match <ipaddr>&Filter-Id == &Framed-IP-Address
 
 condition <ipaddr>&Filter-Id == <integer>&Framed-IP-Address
-match ERROR offset 22: Unexpected cast
+match ERROR offset 22: Unexpected cast in right side of comparison
 
 condition <ipaddr>&Filter-Id == <blerg>&Framed-IP-Address
 match ERROR offset 23: Unknown data type