Skip to content

Commit

Permalink
chore: add a log in config checker (#2696)
Browse files Browse the repository at this point in the history
In this PR:
- Add a log when the config validation succeeds.

Context: I tested the checker in
[here](https://github.com/googleapis/google-cloud-java/actions/runs/8884272073/job/24392990025?pr=10761).
It will be good if the checker emit a log when the check passed.
  • Loading branch information
JoeWang1127 authored and lqiu96 committed May 22, 2024
1 parent 7ae6a40 commit c4affd9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library_generation/cli/entry_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 any errors.")
except ValueError as err:
print(err)
sys.exit(1)
Expand Down

0 comments on commit c4affd9

Please sign in to comment.