Skip to content

Commit

Permalink
Loki-transform: More informative error message
Browse files Browse the repository at this point in the history
  • Loading branch information
mlange05 committed Jan 17, 2025
1 parent a114928 commit f1e201d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/loki_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ def convert(
# If requested, apply a custom pipeline from the scheduler config
# Note that this new entry point will bypass all other default
# behaviour and exit immediately after.
if not mode in config.pipelines:
msg = '[Loki] ERROR: Pipeline or transformation mode not found in config file.\n'
if mode not in config.pipelines:
msg = f'[Loki] ERROR: Pipeline or transformation mode {mode} not found in config file.\n'
msg += '[Loki] Please provide a config file with configured transformation or pipelines instead.\n'
sys.exit(msg)

Expand Down

0 comments on commit f1e201d

Please sign in to comment.