mirror of
https://github.com/systemd/systemd.git
synced 2024-11-02 02:21:44 +03:00
dissect: include error cause in log message
This commit is contained in:
parent
9d77ca39e5
commit
63cf2d75d6
@ -106,7 +106,7 @@ static int parse_argv(int argc, char *argv[]) {
|
||||
|
||||
r = unhexmem(optarg, strlen(optarg), &p, &l);
|
||||
if (r < 0)
|
||||
return log_error_errno(r, "Failed to parse root hash: %s", optarg);
|
||||
return log_error_errno(r, "Failed to parse root hash '%s': %m", optarg);
|
||||
if (l < sizeof(sd_id128_t)) {
|
||||
log_error("Root hash must be at least 128bit long: %s", optarg);
|
||||
free(p);
|
||||
|
Loading…
Reference in New Issue
Block a user