File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -28,3 +28,4 @@ ptx-error-dumb-format = There is no dumb format with GNU extensions disabled
2828ptx-error-not-implemented = { $feature } not implemented yet
2929ptx-error-write-failed = write failed
3030ptx-error-extra-operand = extra operand { $operand }
31+ ptx-invalid-regular-expression = invalid regular expression: { $error }
Original file line number Diff line number Diff line change @@ -307,9 +307,9 @@ fn create_word_set(
307307 file_map : & FileMap ,
308308) -> UResult < BTreeSet < WordRef > > {
309309 let reg = Regex :: new ( & filter. word_regex )
310- . map_err ( |e| USimpleError :: new ( 1 , format ! ( "invalid regular expression: {}" , e) ) ) ?;
310+ . map_err ( |e| USimpleError :: new ( 1 , translate ! ( "ptx- invalid- regular- expression" , "error" => e) ) ) ?;
311311 let ref_reg = Regex :: new ( & config. context_regex )
312- . map_err ( |e| USimpleError :: new ( 1 , format ! ( "invalid regular expression: {}" , e) ) ) ?;
312+ . map_err ( |e| USimpleError :: new ( 1 , translate ! ( "ptx- invalid- regular- expression" , "error" => e) ) ) ?;
313313 let mut word_set: BTreeSet < WordRef > = BTreeSet :: new ( ) ;
314314 for ( file, lines) in file_map {
315315 let mut count: usize = 0 ;
You can’t perform that action at this time.
0 commit comments