From aa84ec46805623ce6da00bf19d8e637674427714 Mon Sep 17 00:00:00 2001 From: Joe Wang Date: Mon, 29 Apr 2024 15:28:19 -0400 Subject: [PATCH 1/2] chore: add a log in config checker --- library_generation/cli/entry_point.py | 1 + 1 file changed, 1 insertion(+) diff --git a/library_generation/cli/entry_point.py b/library_generation/cli/entry_point.py index a8c9c3ee0d..63bc46b3a4 100644 --- a/library_generation/cli/entry_point.py +++ b/library_generation/cli/entry_point.py @@ -161,6 +161,7 @@ def validate_generation_config(generation_config_path: str) -> None: generation_config_path = "generation_config.yaml" try: from_yaml(os.path.abspath(generation_config_path)) + print(f"{generation_config_path} is validated without error.") except ValueError as err: print(err) sys.exit(1) From 6cac967a3e6ad43020979f90beda0cdf4834e979 Mon Sep 17 00:00:00 2001 From: Joe Wang Date: Mon, 29 Apr 2024 17:00:55 -0400 Subject: [PATCH 2/2] change message --- library_generation/cli/entry_point.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library_generation/cli/entry_point.py b/library_generation/cli/entry_point.py index 63bc46b3a4..960fae8693 100644 --- a/library_generation/cli/entry_point.py +++ b/library_generation/cli/entry_point.py @@ -161,7 +161,7 @@ def validate_generation_config(generation_config_path: str) -> None: generation_config_path = "generation_config.yaml" try: from_yaml(os.path.abspath(generation_config_path)) - print(f"{generation_config_path} is validated without error.") + print(f"{generation_config_path} is validated without any errors.") except ValueError as err: print(err) sys.exit(1)