mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:14:58 +00:00
LibFileSystemAccessClient: Return an errno instead of a string literal
Returning an errno to ease error transmission over IPC.
This commit is contained in:
parent
9521952f36
commit
deb525fd9d
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ void Client::handle_prompt_end(i32 request_id, i32 error, Optional<IPC::File> co
|
|||
|
||||
if (file->is_directory()) {
|
||||
GUI::MessageBox::show_error(request_data.parent_window, String::formatted("Opening \"{}\" failed: Cannot open directory", *chosen_file));
|
||||
request_data.promise->resolve(Error::from_string_literal("Cannot open directory"sv));
|
||||
request_data.promise->resolve(Error::from_errno(EISDIR));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue