mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:28:10 +00:00
LibFileSystemAccessClient: Don't crash when formatting error messages
Since c140b67
ESUCCESS Errors aren't allowed. FSAC was initializing
an ErrorOr<String> arbitrarily to 0 for scope, causing it to hit the
VERIFY().
This commit is contained in:
parent
49b29332f2
commit
9ecfacaffd
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ void Client::handle_prompt_end(i32 request_id, i32 error, Optional<IPC::File> co
|
|||
break;
|
||||
[[fallthrough]];
|
||||
default:
|
||||
auto maybe_message = ErrorOr<String>({});
|
||||
ErrorOr<String> maybe_message = String {};
|
||||
if (error == ECONNRESET)
|
||||
maybe_message = String::formatted("FileSystemAccessClient: {}", Error::from_errno(error));
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue