mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
creds: improve message about unknown user
Before: $ build/systemd-creds --uid=asdf Failed to resolve user 'asdf': No such process Now: $ build/systemd-creds --uid=asdf Failed to resolve user 'asdf': Unknown user
This commit is contained in:
@@ -1062,7 +1062,8 @@ static int parse_argv(int argc, char *argv[]) {
|
||||
/* ret_shell= */ NULL,
|
||||
/* flags= */ 0);
|
||||
if (r < 0)
|
||||
return log_error_errno(r, "Failed to resolve user '%s': %m", optarg);
|
||||
return log_error_errno(r, "Failed to resolve user '%s': %s",
|
||||
optarg, STRERROR_USER(r));
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user