diff --git a/CHANGELOG.md b/CHANGELOG.md index c401e8c..e4af89a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning][]. - Remove vendored `hiyapyco` code since required changes were released upstream in v0.7.0 ([#45](https://github.com/Boehringer-Ingelheim/dso/pull/45)). - `None` values in `params.in.yaml` can now be used to override anything, e.g. to disable watermarking only in a specific stage ([#45](https://github.com/Boehringer-Ingelheim/dso/pull/45)). - Improve logging for "missing path" warning during `compile-config` ([#59](https://github.com/Boehringer-Ingelheim/dso/pull/59)). +- Improve logging for missing parameters in `dvc.yaml` during `get-config` ([#59](https://github.com/Boehringer-Ingelheim/dso/pull/59)). ## v0.9.0 diff --git a/src/dso/get_config.py b/src/dso/get_config.py index 924ed1c..a4074f8 100644 --- a/src/dso/get_config.py +++ b/src/dso/get_config.py @@ -148,6 +148,6 @@ def cli(stage, all, skip_compile): out_config = get_config(stage, all=all, skip_compile=skip_compile) yaml = YAML() yaml.dump(out_config, sys.stdout) - except KeyError: - log.error("dvc.yaml defines parameter that is not in params.yaml") + except KeyError as e: + log.error(f"dvc.yaml defines parameter {e} that is not in params.yaml") sys.exit(1)