File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
use super :: { Preprocessor , PreprocessorContext } ;
2
2
use crate :: book:: Book ;
3
3
use crate :: errors:: * ;
4
- use log:: { debug, trace, warn} ;
4
+ use log:: { debug, error , trace, warn} ;
5
5
use shlex:: Shlex ;
6
6
use std:: io:: { self , Read , Write } ;
7
7
use std:: process:: { Child , Command , Stdio } ;
@@ -164,11 +164,11 @@ impl Preprocessor for CmdPreprocessor {
164
164
165
165
if let Err ( ref e) = outcome {
166
166
if e. kind ( ) == io:: ErrorKind :: NotFound {
167
- warn ! (
168
- "The command wasn't found, is the \" {}\" preprocessor installed?" ,
169
- self . name
167
+ error ! (
168
+ "The command {} wasn't found, is the \" {}\" preprocessor installed?" ,
169
+ self . cmd , self . name
170
170
) ;
171
- warn ! ( " \t Command: {}" , self . cmd ) ;
171
+ std :: process :: exit ( 1 ) ;
172
172
}
173
173
}
174
174
You can’t perform that action at this time.
0 commit comments