Skip to content

Commit 542b6fe

Browse files
authored
Merge pull request #2545 from ehuss/rustdoc-missing-error
Add context when `rustdoc` command is not found
2 parents 40d91ff + 2af44a3 commit 542b6fe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/book/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,9 @@ impl MDBook {
356356
}
357357

358358
debug!("running {:?}", cmd);
359-
let output = cmd.output()?;
359+
let output = cmd
360+
.output()
361+
.with_context(|| "failed to execute `rustdoc`")?;
360362

361363
if !output.status.success() {
362364
failed = true;

0 commit comments

Comments
 (0)