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:
parent
08dcc40aa5
commit
8fabe9a3ad
4 changed files with 9 additions and 17 deletions
|
@ -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()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue