]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Make the assert much more explicit
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 19 Feb 2024 19:35:31 +0000 (13:35 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 19 Feb 2024 19:35:31 +0000 (13:35 -0600)
src/lib/unlang/xlat_inst.c

index ee016f658c52eb1a5c105ed52ad17ec2041587df..b069abcea975b2ce16e630c29b363fcc08f78b8e 100644 (file)
@@ -656,7 +656,9 @@ static inline CC_HINT(always_inline) int xlat_instance_register(xlat_exp_head_t
         *      If thread instantiate has been called, it's too late to
         *      bootstrap new xlats.
         */
-       fr_assert(!xlat_thread_inst_tree);
+       fr_assert_msg(!xlat_thread_inst_tree, "Tried to instantiate new compile time xlat at runtime.  "
+                     "xlat.runtime_el likely not set in tmpl rules when it should've been.  "
+                     "Use unlang_interpret_event_list() to get the current event list from the request");
 
        /*
         *      Initialise the instance tree if this is the first xlat