We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b266f1 commit 93d4647Copy full SHA for 93d4647
src/preprocess/cmd.rs
@@ -1,7 +1,7 @@
1
use super::{Preprocessor, PreprocessorContext};
2
use crate::book::Book;
3
use crate::errors::*;
4
-use log::{debug, trace, warn};
+use log::{debug, error, trace, warn};
5
use shlex::Shlex;
6
use std::io::{self, Read, Write};
7
use std::process::{Child, Command, Stdio};
@@ -164,11 +164,11 @@ impl Preprocessor for CmdPreprocessor {
164
165
if let Err(ref e) = outcome {
166
if e.kind() == io::ErrorKind::NotFound {
167
- warn!(
168
- "The command wasn't found, is the \"{}\" preprocessor installed?",
169
- self.name
+ error!(
+ "The command {} wasn't found, is the \"{}\" preprocessor installed?",
+ self.cmd, self.name
170
);
171
- warn!("\tCommand: {}", self.cmd);
+ std::process::exit(1);
172
}
173
174
0 commit comments