mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-05 06:32:26 +02: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:
committed by
Sam Atkins
parent
49b29332f2
commit
9ecfacaffd
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user