mirror of
https://github.com/QuantumPackage/qp2.git
synced 2025-01-05 02:48:49 +01:00
Better error message
This commit is contained in:
parent
88cffcb269
commit
43b83ee8e9
@ -802,8 +802,12 @@ if __name__ == "__main__":
|
|||||||
pickle_path = os.path.join(QP_ROOT, "config", "qp_create_ninja.pickle")
|
pickle_path = os.path.join(QP_ROOT, "config", "qp_create_ninja.pickle")
|
||||||
|
|
||||||
if arguments["update"]:
|
if arguments["update"]:
|
||||||
|
try:
|
||||||
with open(pickle_path, 'rb') as handle:
|
with open(pickle_path, 'rb') as handle:
|
||||||
arguments = pickle.load(handle)
|
arguments = pickle.load(handle)
|
||||||
|
except FileNotFoundError:
|
||||||
|
print("\n-----\nError: Please run 'configure -c config/<config_file>'\n-----\n")
|
||||||
|
raise
|
||||||
|
|
||||||
elif arguments["create"]:
|
elif arguments["create"]:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user