Record failed read parameters

pull/23/head
Gerard Wagener 2018-11-27 16:31:19 +01:00
parent 6c827c86d5
commit fb9a514ff8
1 changed files with 5 additions and 0 deletions

View File

@ -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]);
}
}
}
}