From b5f1142d5b0e34510017ac5085c757215e67b964 Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Fri, 9 Apr 2021 08:56:47 -0400 Subject: [PATCH] unique errors for unique circumstances --- src/bin/unit_test_attribute.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin/unit_test_attribute.c b/src/bin/unit_test_attribute.c index c1f48dae3a..589b4cd162 100644 --- a/src/bin/unit_test_attribute.c +++ b/src/bin/unit_test_attribute.c @@ -1169,7 +1169,7 @@ static size_t command_radmin_tab(command_result_t *result, command_file_ctx_t *c len = snprintf(p, end - p, "%d - ", num_expansions); if (is_truncated(len, end - p)) { oob: - fr_strerror_const("Out of output buffer space"); + fr_strerror_const("Out of output buffer space for radmin command"); RETURN_COMMAND_ERROR(); } p += len; @@ -1352,7 +1352,7 @@ static size_t command_decode_pair(command_result_t *result, command_file_ctx_t * vp = fr_pair_list_next(&head, vp)) { if ((slen = fr_pair_print(&FR_SBUFF_OUT(p, end), NULL, vp)) < 0) { oob: - fr_strerror_const("Out of output buffer space"); + fr_strerror_const("Out of output buffer space for printed pairs"); CLEAR_TEST_POINT(cc); RETURN_COMMAND_ERROR(); } @@ -1453,7 +1453,7 @@ static size_t command_decode_proto(command_result_t *result, command_file_ctx_t vp = fr_pair_list_next(&head, vp)) { if ((slen = fr_pair_print(&sbuff, NULL, vp)) < 0) { oob: - fr_strerror_printf("Out of output buffer space (%zd)", slen); + fr_strerror_printf("Out of output buffer space (%zd) for decoded data", slen); CLEAR_TEST_POINT(cc); RETURN_COMMAND_ERROR(); } -- 2.47.2