mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:37:35 +00:00
LibCore: Propagate errors in SecretString
This commit is contained in:
parent
b4f47935a5
commit
ccc871e608
3 changed files with 4 additions and 4 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue