Skip to content

Commit 2af44a3

Browse files
committed
Add context when rustdoc command is not found
1 parent 40d91ff commit 2af44a3

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)