Better error message

This commit is contained in:
Anthony Scemama 2024-04-09 12:34:35 +02:00
parent 88cffcb269
commit 43b83ee8e9
1 changed files with 4 additions and 0 deletions

View File

@ -802,8 +802,12 @@ if __name__ == "__main__":
pickle_path = os.path.join(QP_ROOT, "config", "qp_create_ninja.pickle")
if arguments["update"]:
try:
with open(pickle_path, 'rb') as handle:
arguments = pickle.load(handle)
except FileNotFoundError:
print("\n-----\nError: Please run 'configure -c config/<config_file>'\n-----\n")
raise
elif arguments["create"]: