Print stdout when `mdbook test` failed

This commit is contained in:
messense 2017-06-28 10:28:50 +08:00
parent 4974d2cfa1
commit f2544e0707
No known key found for this signature in database
GPG Key ID: BB41A8A2C716CCA9
1 changed files with 2 additions and 1 deletions

View File

@ -107,7 +107,8 @@ pub mod errors {
errors {
Subprocess(message: String, output: ::std::process::Output) {
description("A subprocess failed")
display("{}: {}", message, String::from_utf8_lossy(&output.stdout))
}
}
}
}
}