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

LibCore: Propagate errors from LibCore::Account::login()

This commit is contained in:
Lucas CHOLLET 2022-07-09 14:53:04 +02:00 committed by Sam Atkins
parent 08dcc40aa5
commit 8fabe9a3ad
4 changed files with 9 additions and 17 deletions

View file

@ -51,10 +51,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
TRY(Core::System::pledge("stdio rpath exec id"));
if (!account.login()) {
perror("Core::Account::login");
return 1;
}
TRY(account.login());
if (simulate_login)
TRY(Core::System::chdir(account.home_directory()));