BurntSushi/ripgrep

improve error messages when -f flag fails

Open

#478 aperta il 9 mag 2017

Vedi su GitHub
 (9 commenti) (0 reazioni) (0 assegnatari)Rust (2559 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (63.768 star)
Metriche merge PR
 (Merge medio 2g 12h) (5 PR mergiate in 30 g)

Descrizione

For example:

$ rg -e foo -f src/search_stream.rs 
Error parsing regex near 'fer.|*/|z{' at character offset 213: Invalid application of repetition operator to: '(?u:f)(?u:o)(?u:o)|(?u:/)*(?u:!)|(?u:T)(?u:h)(?u:e)

Aside from the badly formatted regex error message (see #395), the error message should show the file path and probably also the line number at which the error occurred.

Guida contributor