Add a notice on why its not running
This commit is contained in:
parent
076770710d
commit
beb4f1ae54
1 changed files with 6 additions and 1 deletions
7
main.py
7
main.py
|
@ -10,7 +10,12 @@ def clang_format(file_path):
|
||||||
except subprocess.CalledProcessError as e:
|
except subprocess.CalledProcessError as e:
|
||||||
output = e.output
|
output = e.output
|
||||||
except FileNotFoundError as e:
|
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)
|
exit(1)
|
||||||
|
|
||||||
return output
|
return output
|
||||||
|
|
Reference in a new issue