mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 10:37:44 +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
|
@ -23,8 +23,8 @@ static void child_process(Core::Account const& account)
|
|||
exit(1);
|
||||
}
|
||||
|
||||
if (!account.login()) {
|
||||
dbgln("failed to switch users: {}", strerror(errno));
|
||||
if (auto const result = account.login(); result.is_error()) {
|
||||
dbgln("failed to switch users: {}", result.error());
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue