mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +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
Notes:
sideshowbarker
2024-07-17 09:56:40 +09:00
Author: https://github.com/LucasChollet Commit: https://github.com/SerenityOS/serenity/commit/deb525fd9d Pull-request: https://github.com/SerenityOS/serenity/pull/13870 Issue: https://github.com/SerenityOS/serenity/issues/5259 Reviewed-by: https://github.com/Dexesttp Reviewed-by: https://github.com/linusg Reviewed-by: https://github.com/petelliott
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…
Reference in a new issue