mirror of https://github.com/D4-project/d4-core
use macro for inserting errors
parent
e1ba7834c4
commit
233ac80f0f
|
@ -26,11 +26,7 @@ int d4_load_config(d4_t* d4)
|
|||
read(fd, d4->conf[i], SZCONFVALUE);
|
||||
} else {
|
||||
d4->errno_copy = errno;
|
||||
if ( d4->err_idx < SZERRVALUE ) {
|
||||
snprintf(d4->errors[d4->err_idx], SZERRVALUE,
|
||||
"Failed to load %s", d4params[i]);
|
||||
d4->err_idx++;
|
||||
}
|
||||
INSERT_ERROR("Failed to load %s", d4params[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue