BurntSushi/ripgrep

improve error messages when -f flag fails

Open

#478 ouverte le 9 mai 2017

Voir sur GitHub
 (9 commentaires) (0 réactions) (0 assignés)Rust (2 559 forks)batch import
enhancementhelp wanted

Métriques du dépôt

Stars
 (63 768 stars)
Métriques de merge PR
 (Merge moyen 2j 12h) (5 PRs mergées en 30 j)

Description

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.

Guide contributeur