1
0
Fork 0
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:
J2P 2019-02-09 19:30:01 +09:00 committed by Ryan Dahl
parent b2fb8261e7
commit 636e234e4c

View file

@ -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);
} }