summaryrefslogtreecommitdiff
path: root/cli/tools/doc.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tools/doc.rs')
-rw-r--r--cli/tools/doc.rs2
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.