non-zero exit code on error

This commit is contained in:
Salvatore Ingala
2019-10-17 12:10:38 +08:00
parent f19c499efa
commit edd04c23ea

View File

@@ -42,3 +42,4 @@ if __name__ == '__main__':
logger.error("Can't connect to bitcoind. Shutting down") logger.error("Can't connect to bitcoind. Shutting down")
except Exception e: except Exception e:
logger.error("There was an error while starting the daemon. Shutting down", error_args=e.args) logger.error("There was an error while starting the daemon. Shutting down", error_args=e.args)
exit(1)