From c890e38d5201ff03750e77c0f23f94e6cef51dc4 Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Tue, 28 Mar 2017 11:15:44 -0400 Subject: [PATCH] map_cast_from_hex() does not produce error messages --- src/main/modcall.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/modcall.c b/src/main/modcall.c index 312b1bb..b3dd3f0 100644 --- a/src/main/modcall.c +++ b/src/main/modcall.c @@ -1664,7 +1664,7 @@ int modcall_fixup_update(vp_map_t *map, UNUSED void *ctx) if (!map_cast_from_hex(map, T_BARE_WORD, vpt->name)) { map->rhs = vpt; - cf_log_err(map->ci, "%s", fr_strerror()); + cf_log_err(map->ci, "Cannot parse RHS hex as the data type of the attribute %s", map->lhs->tmpl_da->name); return -1; } talloc_free(vpt); @@ -3324,7 +3324,7 @@ static bool pass2_callback(void *ctx, fr_cond_t *c) if (!map_cast_from_hex(map, T_BARE_WORD, vpt->name)) { map->rhs = vpt; - cf_log_err(map->ci, "%s", fr_strerror()); + cf_log_err(map->ci, "Cannot parse RHS hex as the data type of the attribute %s", map->lhs->tmpl_da->name); return -1; } talloc_free(vpt); -- 2.1.4