diff options
Diffstat (limited to '')
| -rw-r--r-- | patternutils/commands/pmatch.py | 2 | ||||
| -rw-r--r-- | patternutils/commands/targs.py | 2 | ||||
| -rw-r--r-- | patternutils/commands/tln.py | 2 | ||||
| -rw-r--r-- | patternutils/commands/tmv.py | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/patternutils/commands/pmatch.py b/patternutils/commands/pmatch.py index c276bf3..6bbd349 100644 --- a/patternutils/commands/pmatch.py +++ b/patternutils/commands/pmatch.py @@ -121,7 +121,7 @@ def pmatch( try: regex_pattern, _ = config.load_template(regex_pattern, "pmatch") except FileNotFoundError: - click.secho("File not found!", fg="red", err=True) + click.secho(f"Regex {regex_pattern} not found!", fg="red", err=True) raise SystemExit except RuntimeError: click.secho("Multiple files found!", fg="red", err=True) diff --git a/patternutils/commands/targs.py b/patternutils/commands/targs.py index 4ec9a17..a3b3a02 100644 --- a/patternutils/commands/targs.py +++ b/patternutils/commands/targs.py @@ -86,7 +86,7 @@ def targs( try: command, template_engine = config.load_template(command, "targs") except FileNotFoundError: - click.secho("File not found!", fg="red", err=True) + click.secho(f"Command {command} not found!", fg="red", err=True) raise SystemExit except RuntimeError: click.secho("Multiple files found!", fg="red", err=True) diff --git a/patternutils/commands/tln.py b/patternutils/commands/tln.py index e84ddb4..295cda9 100644 --- a/patternutils/commands/tln.py +++ b/patternutils/commands/tln.py @@ -118,7 +118,7 @@ def tln( output_pattern, "tln" ) except FileNotFoundError: - click.secho("File not found!", fg="red", err=True) + click.secho(f"Template {output_pattern} not found!", fg="red", err=True) raise SystemExit except RuntimeError: click.secho("Multiple files found!", fg="red", err=True) diff --git a/patternutils/commands/tmv.py b/patternutils/commands/tmv.py index 1b25441..3e92342 100644 --- a/patternutils/commands/tmv.py +++ b/patternutils/commands/tmv.py @@ -114,7 +114,7 @@ def tmv( output_pattern, "tmv" ) except FileNotFoundError: - click.secho("File not found!", fg="red", err=True) + click.secho(f"Template {output_pattern} not found!", fg="red", err=True) raise SystemExit except RuntimeError: click.secho("Multiple files found!", fg="red", err=True) |
