This is the unstable version of pretzel where he breaks things.

This commit is contained in:
Andrew
2021-08-07 13:15:53 -04:00
parent ca9788081b
commit e86998e57d
3 changed files with 69 additions and 1 deletions

View File

@ -140,7 +140,11 @@ class Server:
try:
self.process = pexpect.spawn(self.server_command, cwd=self.server_path, timeout=None, encoding=None)
except Exception as ex:
logger.error("Server {} failed to start with error code: {}".format(self.name, ex))
msg = "Server {} failed to start with error code: {}".format(self.name, ex)
logger.error(msg)
websocket_helper.broadcast('send_start_error', {
'error': msg
})
return False
self.is_crashed = False