Will display the exception of Server Connection

This commit is contained in:
LollipopKit
2021-11-08 19:13:24 +08:00
parent e0fb591dea
commit 89ef2cb95c
4 changed files with 7 additions and 5 deletions

View File

@@ -141,6 +141,7 @@ class ServerProvider extends BusyProvider {
notifyListeners();
} catch (e) {
_servers[idx].connectionState = ServerConnectionState.failed;
_servers[idx].status.failedInfo = e.toString().split(', ')[1];
notifyListeners();
logger.warning(e);
}