mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 20:25:07 +00:00
FileSystemAccessServer: Return EPERM for denied prompts
Instead of showing an ambiguous "Unknown error" when FSAS approval is denied, let's affirm the user's action wasn't permitted if they reject the prompt.
This commit is contained in:
parent
37e621a3c7
commit
fef594708e
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ void ConnectionFromClient::request_file_handler(i32 request_id, i32 window_serve
|
|||
async_handle_prompt_end(request_id, 0, IPC::File(*file.release_value(), IPC::File::CloseAfterSending), path);
|
||||
}
|
||||
} else {
|
||||
async_handle_prompt_end(request_id, -1, Optional<IPC::File> {}, path);
|
||||
async_handle_prompt_end(request_id, EPERM, Optional<IPC::File> {}, path);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue