0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-15 10:06:23 -05:00

Make PermissionDeniedError fields pub

Signed-off-by: Richard Carson <Rscarson@rogers.com>
This commit is contained in:
Richard Carson 2024-11-09 12:43:12 -05:00 committed by GitHub
parent 01de331742
commit 1c54f44c14
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -40,8 +40,8 @@ pub use prompter::PromptResponse;
#[derive(Debug, thiserror::Error)]
#[error("Requires {access}, {}", format_permission_error(.name))]
pub struct PermissionDeniedError {
access: String,
name: &'static str,
pub access: String,
pub name: &'static str,
}
fn format_permission_error(name: &'static str) -> String {