mirror of
https://github.com/denoland/deno.git
synced 2025-02-18 19:33:00 -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)]
|
#[derive(Debug, thiserror::Error)]
|
||||||
#[error("Requires {access}, {}", format_permission_error(.name))]
|
#[error("Requires {access}, {}", format_permission_error(.name))]
|
||||||
pub struct PermissionDeniedError {
|
pub struct PermissionDeniedError {
|
||||||
access: String,
|
pub access: String,
|
||||||
name: &'static str,
|
pub name: &'static str,
|
||||||
}
|
}
|
||||||
|
|
||||||
fn format_permission_error(name: &'static str) -> String {
|
fn format_permission_error(name: &'static str) -> String {
|
||||||
|
|
Loading…
Add table
Reference in a new issue