File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -416,7 +416,14 @@ fn determine_preprocessors(config: &Config) -> Result<Vec<Box<dyn Preprocessor>>
416416 ) )
417417 } ) ?;
418418
419- if exists ( after) {
419+ if !exists ( after) {
420+ // Only warn so that preprocessors can be toggled on and off (e.g. for
421+ // troubleshooting) without having to worry about order too much.
422+ warn ! (
423+ "preprocessor.{}.after contains \" {}\" , which was not found" ,
424+ name, after
425+ ) ;
426+ } else {
420427 preprocessor_names. add_dependency ( name, after) ;
421428 }
422429 }
@@ -437,7 +444,13 @@ fn determine_preprocessors(config: &Config) -> Result<Vec<Box<dyn Preprocessor>>
437444 ) )
438445 } ) ?;
439446
440- if exists ( before) {
447+ if !exists ( before) {
448+ // See equivalent warning above for rationale
449+ warn ! (
450+ "preprocessor.{}.before contains \" {}\" , which was not found" ,
451+ name, before
452+ ) ;
453+ } else {
441454 preprocessor_names. add_dependency ( before, name) ;
442455 }
443456 }
You can’t perform that action at this time.
0 commit comments