From 07dac339dded319e494b4f825747a79a0e3f808f Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Fri, 10 Jan 2025 09:10:46 -0500 Subject: [PATCH] clearer errors --- src/lib/util/dict_tokenize.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/util/dict_tokenize.c b/src/lib/util/dict_tokenize.c index 8501728dc3..d8c0f41a2d 100644 --- a/src/lib/util/dict_tokenize.c +++ b/src/lib/util/dict_tokenize.c @@ -2046,7 +2046,9 @@ static int dict_read_process_member(dict_tokenize_ctx_t *dctx, char **argv, int } if (dctx->stack[dctx->stack_depth].da->type != FR_TYPE_STRUCT) { - fr_strerror_const("MEMBER can only be used for ATTRIBUTEs of type 'struct'"); + fr_strerror_printf("MEMBER can only be used for ATTRIBUTEs of type 'struct', not %s of type %s", + dctx->stack[dctx->stack_depth].da->name, + fr_type_to_str(dctx->stack[dctx->stack_depth].da->type)); return -1; } -- 2.47.3