Add a notice on why its not running

This commit is contained in:
Mylloon 2023-05-29 11:08:11 +02:00
parent 076770710d
commit beb4f1ae54
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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