mirror of
https://github.com/krille-chan/fluffychat
synced 2024-10-05 14:32:43 +00:00
chore: Add more exception type
This commit is contained in:
parent
a72b20ca46
commit
eb879936a6
1 changed files with 3 additions and 1 deletions
|
@ -67,7 +67,9 @@ extension LocalizedExceptionExtension on Object {
|
|||
supportedVersions,
|
||||
);
|
||||
}
|
||||
if (this is MatrixConnectionException || this is SocketException) {
|
||||
if (this is MatrixConnectionException ||
|
||||
this is SocketException ||
|
||||
this is SyncConnectionException) {
|
||||
return L10n.of(context)!.noConnectionToTheServer;
|
||||
}
|
||||
if (this is String) return toString();
|
||||
|
|
Loading…
Reference in a new issue