mirror of
https://github.com/rust-lang/mdBook.git
synced 2025-12-27 10:16:09 -05:00
Merge pull request #2545 from ehuss/rustdoc-missing-error
Add context when `rustdoc` command is not found
This commit is contained in:
@@ -356,7 +356,9 @@ impl MDBook {
|
||||
}
|
||||
|
||||
debug!("running {:?}", cmd);
|
||||
let output = cmd.output()?;
|
||||
let output = cmd
|
||||
.output()
|
||||
.with_context(|| "failed to execute `rustdoc`")?;
|
||||
|
||||
if !output.status.success() {
|
||||
failed = true;
|
||||
|
||||
Reference in New Issue
Block a user