mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09:00
FileSystemAccessServer: Return user_picked_value even on error
If a user picks a file which can't be opened for some reason, we should still return the value, so client applications can report the error along with the chosen filepath.
This commit is contained in:
parent
c9f6786e8b
commit
643ecfee73
Notes:
sideshowbarker
2024-07-18 09:21:08 +09:00
Author: https://github.com/ant1441
Commit: 643ecfee73
Pull-request: https://github.com/SerenityOS/serenity/pull/8631
Issue: https://github.com/SerenityOS/serenity/issues/8627
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ T ClientConnection::prompt_helper(Optional<String> const& user_picked_file, Core
|
|||
if (file.is_error()) {
|
||||
dbgln("FileSystemAccessServer: Couldn't open {}, error {}", user_picked_file.value(), file.error());
|
||||
|
||||
return { errno, Optional<IPC::File> {}, Optional<String> {} };
|
||||
return { errno, Optional<IPC::File> {}, user_picked_file.value() };
|
||||
}
|
||||
|
||||
auto maybe_permissions = m_approved_files.get(user_picked_file.value());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue