Skip to content

Commit a220528

Browse files
authored
Merge pull request #367 from messense/feature/fix-mdbook-test-error
Print stdout when `mdbook test` failed
2 parents 4974d2c + f2544e0 commit a220528

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ pub mod errors {
107107
errors {
108108
Subprocess(message: String, output: ::std::process::Output) {
109109
description("A subprocess failed")
110+
display("{}: {}", message, String::from_utf8_lossy(&output.stdout))
110111
}
111112
}
112113
}
113-
}
114+
}

0 commit comments

Comments
 (0)