Program not exits on error.

This commit is contained in:
Harrison Deng 2021-04-01 20:15:24 -05:00
parent f7021195f5
commit bc072b2e10

View File

@ -169,11 +169,11 @@ if __name__ == "__main__":
exit(1)
else:
if sys.argv[1] == "setup":
project_gen()
gen_dev_server()
if project_gen() != 0: exit(1)
if gen_dev_server() != 0: exit(1)
elif sys.argv[1] == "project":
project_gen()
if project_gen() != 0: exit(1)
elif sys.argv[1] == "server":
gen_dev_server()
if gen_dev_server() != 0: exit(1)
elif sys.argv[1] == "reset":
reset()