mirror of
https://github.com/sharkdp/fd
synced 2024-10-14 11:42:46 +00:00
Fixes: #234
Giving suggestion to use `--fixed-strings` in case user passes invalid metacharacters as a regex.
This commit is contained in:
parent
ad8256c217
commit
7e8c2248d0
|
@ -182,6 +182,12 @@ fn main() {
|
|||
.build()
|
||||
{
|
||||
Ok(re) => walk::scan(&dir_vec, Arc::new(re), Arc::new(config)),
|
||||
Err(err) => error(err.description()),
|
||||
Err(err) => error(
|
||||
format!(
|
||||
"{}\nHint: You can use the '--fixed-strings' option to search for a \
|
||||
literal string instead of a regular expression",
|
||||
err.description()
|
||||
).as_str(),
|
||||
),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue