Merge pull request #367 from messense/feature/fix-mdbook-test-error

Print stdout when `mdbook test` failed
This commit is contained in:
Mathieu David 2017-06-28 08:41:13 +02:00 committed by GitHub
commit a220528c15
1 changed files with 2 additions and 1 deletions

View File

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