mirror of https://github.com/D4-project/d4-core
Record failed read parameters
parent
6c827c86d5
commit
fb9a514ff8
|
@ -26,6 +26,11 @@ int d4_load_config(d4_t* d4)
|
||||||
read(fd, d4->conf[i], SZCONFVALUE);
|
read(fd, d4->conf[i], SZCONFVALUE);
|
||||||
} else {
|
} else {
|
||||||
d4->errno_copy = errno;
|
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]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue