From fb9a514ff8284cbed61088d72e52a2c53c124779 Mon Sep 17 00:00:00 2001 From: Gerard Wagener Date: Tue, 27 Nov 2018 16:31:19 +0100 Subject: [PATCH] Record failed read parameters --- client/d4.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/d4.c b/client/d4.c index fed46c1..5f9ac47 100644 --- a/client/d4.c +++ b/client/d4.c @@ -26,6 +26,11 @@ int d4_load_config(d4_t* d4) read(fd, d4->conf[i], SZCONFVALUE); } else { d4->errno_copy = errno; + if ( d4->err_idx < SZERRVALUE ) { + d4->err_idx++; + snprintf(d4->errors[d4->err_idx], SZERRVALUE, + "Failed to load %s", d4params[i]); + } } } }