FactorioClient: End the log on "No Archipelago mod was loaded. Aborting." if no bridge mod was found.

CommonClient: give separate error for invalid URI
This commit is contained in:
Fabian Dill
2021-09-09 16:02:45 +02:00
parent b4c3c5deea
commit 282e7b4006
2 changed files with 21 additions and 21 deletions

View File

@@ -252,13 +252,13 @@ async def server_loop(ctx: CommonContext, address=None):
logger.error('Unable to connect to multiworld server at cached address. '
'Please use the connect button above.')
else:
logger.error('Connection refused by the multiworld server')
logger.exception('Connection refused by the multiworld server')
except websockets.InvalidURI:
logger.exception('Failed to connect to the multiworld server (invalid URI)')
except (OSError, websockets.InvalidURI):
logger.error('Failed to connect to the multiworld server')
logger.exception('Failed to connect to the multiworld server')
except Exception as e:
logger.error('Lost connection to the multiworld server, type /connect to reconnect')
if not isinstance(e, websockets.WebSocketException):
logger.exception(e)
logger.exception('Lost connection to the multiworld server, type /connect to reconnect')
finally:
await ctx.connection_closed()
if ctx.server_address: