Skip to content

Commit

Permalink
adds ListKnob error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Tran committed Sep 1, 2020
1 parent 1d01f50 commit 52c1f27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/knobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,10 @@ def get(self):
try:
val = json.loads(source_value)
except JSONDecodeError as e:
click.secho(str(e), err=True, color='red')
click.secho(f"Environment name '{self.env_name}' failed with '{source_value}', {e}", err=True, color='red')
sys.exit(1)
except ValueError as e:
click.secho(e.message, err=True, color='red')
click.secho(f"Environment name '{self.env_name}' failed with '{source_value}', {e}", err=True, color='red')
sys.exit(1)

if self.validator:
Expand Down

0 comments on commit 52c1f27

Please sign in to comment.