diff options
Diffstat (limited to 'ext/flash/lib.rs')
-rw-r--r-- | ext/flash/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/flash/lib.rs b/ext/flash/lib.rs index 957c011bf..93c95f84b 100644 --- a/ext/flash/lib.rs +++ b/ext/flash/lib.rs @@ -1135,7 +1135,7 @@ where check_unstable(state, "Deno.serve"); state .borrow_mut::<P>() - .check_net(&(&opts.hostname, Some(opts.port)))?; + .check_net(&(&opts.hostname, Some(opts.port)), "Deno.serve()")?; let addr = resolve_addr_sync(&opts.hostname, opts.port)? .next() @@ -1377,6 +1377,7 @@ pub trait FlashPermissions { fn check_net<T: AsRef<str>>( &mut self, _host: &(T, Option<u16>), + _api_name: &str, ) -> Result<(), AnyError>; } |