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:
parent
01de331742
commit
1c54f44c14
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue