Add context when rustdoc command is not found
This commit is contained in:
parent
40d91fff29
commit
2af44a396f
1 changed files with 3 additions and 1 deletions
|
|
@ -356,7 +356,9 @@ impl MDBook {
|
||||||
}
|
}
|
||||||
|
|
||||||
debug!("running {:?}", cmd);
|
debug!("running {:?}", cmd);
|
||||||
let output = cmd.output()?;
|
let output = cmd
|
||||||
|
.output()
|
||||||
|
.with_context(|| "failed to execute `rustdoc`")?;
|
||||||
|
|
||||||
if !output.status.success() {
|
if !output.status.success() {
|
||||||
failed = true;
|
failed = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue