BurntSushi/ripgrep

improve error messages when -f flag fails

Open

#478 创建于 2017年5月9日

在 GitHub 查看
 (10 评论) (0 反应) (0 负责人)Rust (2,559 fork)batch import
enhancementhelp wanted

仓库指标

Star
 (63,768 star)
PR 合并指标
 (平均合并 2天 12小时) (30 天内合并 5 个 PR)

描述

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.

贡献者指南