@@ -481,9 +481,10 @@ pub struct BuildConfig {
481
481
/// Extra directories to trigger rebuild when watching/serving
482
482
pub extra_watch_dirs : Vec < PathBuf > ,
483
483
/// Should missing a preprocessor be considered an error?
484
- /// By default, the application exits if a preprocessor is missing.
485
- /// Set this flag to ̀false` to raise a warning instead and continue generation,
484
+ /// By default, the application raises a warning instead and continue generation,
486
485
/// even if the book may be generated incorrectly.
486
+ /// Set this flag to ̀false` to consider this an error, and exits the application
487
+ /// if a preprocessor is missing.
487
488
pub error_on_missing_preprocessor : bool ,
488
489
}
489
490
@@ -494,7 +495,7 @@ impl Default for BuildConfig {
494
495
create_missing : true ,
495
496
use_default_preprocessors : true ,
496
497
extra_watch_dirs : Vec :: new ( ) ,
497
- error_on_missing_preprocessor : true ,
498
+ error_on_missing_preprocessor : false ,
498
499
}
499
500
}
500
501
}
@@ -1075,7 +1076,8 @@ mod tests {
1075
1076
create_missing : true ,
1076
1077
use_default_preprocessors : true ,
1077
1078
extra_watch_dirs : Vec :: new ( ) ,
1078
- error_on_missing_preprocessor : true ,
1079
+ error_on_missing_preprocessor : false , // This flag is missing from "src" string,
1080
+ // so it should be false to ensure backward compatibility
1079
1081
} ;
1080
1082
1081
1083
let html_should_be = HtmlConfig {
0 commit comments