coredump: use log_error_errno() where appropriate
This commit is contained in:
parent
d80b051cea
commit
3afe5c00a5
|
@ -839,8 +839,8 @@ static int save_core(sd_journal *j, FILE *file, char **path, bool *unlink_temp)
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
log_error("Cannot decompress file. Compiled without compression support.");
|
r = log_error_errno(SYNTHETIC_ERRNO(EOPNOTSUPP),
|
||||||
r = -EOPNOTSUPP;
|
"Cannot decompress file. Compiled without compression support.");
|
||||||
goto error;
|
goto error;
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue