Skip to content

Commit

Permalink
Changed exit codes to ValueError exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimi1010 committed Jun 25, 2024
1 parent 0cb52f8 commit c0b4713
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ci/check-clang-format-version.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,9 @@ def main():

version_str = result.stdout.decode("utf-8").split(" ")[2].strip()
if version_str != EXPECTED_CLANG_VERSION:
print(
raise ValueError(
f"Error: Found clang-format version {version_str}, but {EXPECTED_CLANG_VERSION} is required."
)
exit(1)

print("Clang format version satisfied.")
exit(0)


if __name__ == "__main__":
Expand Down

0 comments on commit c0b4713

Please sign in to comment.