1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 07:57:46 +00:00

LibCore: Use OSError in get_password() return type

This commit is contained in:
Andreas Kling 2021-01-10 13:48:05 +01:00
parent a8681da4bf
commit 70fce5c4c7
4 changed files with 15 additions and 15 deletions

View file

@ -124,7 +124,7 @@ int main(int argc, char** argv)
} else {
auto new_password = Core::get_password("New password: ");
if (new_password.is_error()) {
warnln("{}", strerror(new_password.error()));
warnln("{}", new_password.error());
return 1;
}

View file

@ -75,7 +75,7 @@ int main(int argc, char** argv)
if (getuid() != 0 && account.has_password()) {
auto password = Core::get_password();
if (password.is_error()) {
warnln("{}", strerror(password.error()));
warnln("{}", password.error());
return 1;
}