More appropriate message when URLs not found
This commit is contained in:
parent
cc910f6b79
commit
805baad9cd
@ -201,7 +201,9 @@ def run(args, source_file=None):
|
|||||||
marked = mark(finditer, line, index_map)
|
marked = mark(finditer, line, index_map)
|
||||||
lines.append(marked)
|
lines.append(marked)
|
||||||
if not index_map:
|
if not index_map:
|
||||||
input(_('No URLs found, press Enter to abort.'))
|
input(_('No {} found, press Enter to abort.').format(
|
||||||
|
'URLs' if args.regex is None else 'matches'
|
||||||
|
))
|
||||||
return
|
return
|
||||||
|
|
||||||
return run_loop(args, lines, index_map)
|
return run_loop(args, lines, index_map)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user