Merge pull request #2545 from ehuss/rustdoc-missing-error
Add context when `rustdoc` command is not found
This commit is contained in:
commit
542b6feed1
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue