1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:47:35 +00:00

LibCore: Propagate errors in SecretString

This commit is contained in:
Undefine 2023-02-04 18:52:06 +01:00 committed by Andreas Kling
parent b4f47935a5
commit ccc871e608
3 changed files with 4 additions and 4 deletions

View file

@ -40,6 +40,6 @@ ErrorOr<SecretString> get_password(StringView prompt)
// Remove trailing '\n' read by getline().
password[line_length - 1] = '\0';
return SecretString::take_ownership(password, line_length);
return TRY(SecretString::take_ownership(password, line_length));
}
}