diff options
author | Feng Yu <f3n67u@gmail.com> | 2021-07-29 19:07:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-29 04:07:25 -0700 |
commit | 935083d99a9854ccb6808035028fa5d853eb5a98 (patch) | |
tree | 4e6afae09b169cd2ad8d5dca092b3c46ea809616 /cli/tools/doc.rs | |
parent | 4641aacba67d8ad6c80c903c2aa6b2488e3caf49 (diff) |
fix(cli): deno doc panics on invalid url (#11536)
Diffstat (limited to 'cli/tools/doc.rs')
-rw-r--r-- | cli/tools/doc.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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. |