mirror of
https://github.com/denoland/deno.git
synced 2024-11-29 16:30:56 -05:00
Fix read permission message
This commit is contained in:
parent
b2fb8261e7
commit
636e234e4c
1 changed files with 1 additions and 4 deletions
|
@ -47,10 +47,7 @@ impl DenoPermissions {
|
||||||
return Ok(());
|
return Ok(());
|
||||||
};
|
};
|
||||||
// TODO get location (where access occurred)
|
// TODO get location (where access occurred)
|
||||||
let r = permission_prompt(&format!(
|
let r = permission_prompt(&format!("read access to \"{}\"", filename));;
|
||||||
"Deno requests read access to \"{}\".",
|
|
||||||
filename
|
|
||||||
));;
|
|
||||||
if r.is_ok() {
|
if r.is_ok() {
|
||||||
self.allow_read.store(true, Ordering::SeqCst);
|
self.allow_read.store(true, Ordering::SeqCst);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue