File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -250,6 +250,7 @@ impl MDBook {
250
250
// Index Preprocessor is disabled so that chapter paths continue to point to the
251
251
// actual markdown files.
252
252
253
+ let mut failed = false ;
253
254
for item in book. iter ( ) {
254
255
if let BookItem :: Chapter ( ref ch) = * item {
255
256
let chapter_path = match ch. path {
@@ -282,7 +283,8 @@ impl MDBook {
282
283
let output = cmd. output ( ) ?;
283
284
284
285
if !output. status . success ( ) {
285
- bail ! (
286
+ failed = true ;
287
+ error ! (
286
288
"rustdoc returned an error:\n \
287
289
\n --- stdout\n {}\n --- stderr\n {}",
288
290
String :: from_utf8_lossy( & output. stdout) ,
@@ -291,6 +293,9 @@ impl MDBook {
291
293
}
292
294
}
293
295
}
296
+ if failed {
297
+ bail ! ( "One or more tests failed" ) ;
298
+ }
294
299
Ok ( ( ) )
295
300
}
296
301
You can’t perform that action at this time.
0 commit comments