diff --git a/senza/error_handling.py b/senza/error_handling.py index e470fe22..7d657b8f 100644 --- a/senza/error_handling.py +++ b/senza/error_handling.py @@ -2,6 +2,7 @@ from tempfile import NamedTemporaryFile from traceback import format_exception +import yaml.constructor from botocore.exceptions import ClientError, NoCredentialsError @@ -77,6 +78,11 @@ def __call__(self, *args, **kwargs): self.die_credential_error() else: self.die_unknown_error(e) + except yaml.constructor.ConstructorError as e: + print("Error parsing definition file:") + print(e) + if e.problem == "found unhashable key": + print("Please quote all variable values") except Exception as e: # Catch All self.die_unknown_error(e)