From 935083d99a9854ccb6808035028fa5d853eb5a98 Mon Sep 17 00:00:00 2001 From: Feng Yu Date: Thu, 29 Jul 2021 19:07:25 +0800 Subject: fix(cli): deno doc panics on invalid url (#11536) --- cli/tools/doc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/tools') diff --git a/cli/tools/doc.rs b/cli/tools/doc.rs index 6e4d39954..ab9ea127e 100644 --- a/cli/tools/doc.rs +++ b/cli/tools/doc.rs @@ -98,7 +98,7 @@ pub async fn print_docs( get_types(flags.unstable).as_str(), ) } else { - let module_specifier = resolve_url_or_path(&source_file).unwrap(); + let module_specifier = resolve_url_or_path(&source_file)?; // If the root module has external types, the module graph won't redirect it, // so instead create a dummy file which exports everything from the actual file being documented. -- cgit v1.2.3