We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d01a498 commit d021d3eCopy full SHA for d021d3e
clippy_dev/src/lib.rs
@@ -291,10 +291,11 @@ where
291
}
292
293
if !found {
294
- // This happens if the provided regex in `clippy_dev/src/main.rs` is not found in the
+ // This happens if the provided regex in `clippy_dev/src/main.rs` does not match in the
295
// given text or file. Most likely this is an error on the programmer's side and the Regex
296
// is incorrect.
297
- eprintln!("error: regex `{:?}` not found. You may have to update it.", start);
+ eprintln!("error: regex \n{:?}\ndoesn't match. You may have to update it.", start);
298
+ std::process::exit(1);
299
300
301
let mut new_lines = new_lines.join("\n");
0 commit comments