From eb40c0018d2937c9d28c28d90b1db05414cff381 Mon Sep 17 00:00:00 2001 From: Eduardo Almeida Date: Thu, 29 Aug 2024 02:37:09 +0100 Subject: [PATCH] check-style: Improve error messages --- utils/check-style-clang-format.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/check-style-clang-format.py b/utils/check-style-clang-format.py index 129001cc1..a3ca90d7a 100755 --- a/utils/check-style-clang-format.py +++ b/utils/check-style-clang-format.py @@ -205,7 +205,7 @@ def find_files_to_check_style( files_to_check.extend([os.path.join(dirpath, f) for f in filenames]) else: - raise ValueError(f"Error: {path} is not a file nor a directory") + raise ValueError(f"{path} is not a valid file nor a directory") files_to_check.sort() @@ -774,7 +774,7 @@ if __name__ == "__main__": ) except Exception as e: - print(e) + print("ERROR:", e) sys.exit(1) if not all_checks_successful: