From beb4f1ae54d792cebacd954d0c12fb6f1c9fdf2b Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 29 May 2023 11:08:11 +0200 Subject: [PATCH] Add a notice on why its not running --- main.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 34d019a..1c43ad8 100644 --- a/main.py +++ b/main.py @@ -10,7 +10,12 @@ def clang_format(file_path): except subprocess.CalledProcessError as e: output = e.output except FileNotFoundError as e: - print(f"Command not found: {e.filename}", file=sys.stderr) + print(f"Commande non trouvé : {e.filename}", file=sys.stderr) + print( + "clang est requis pour utilisé ce programme, installé-le via " + f"votre gestionnaire de paquet : {e.filename}", + file=sys.stderr, + ) exit(1) return output