diff --git a/src/knobs.py b/src/knobs.py index 9993bfa..872303d 100644 --- a/src/knobs.py +++ b/src/knobs.py @@ -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: