AddAccountView: fix error handling (#2137)

This commit is contained in:
Klaus Dresbach 2024-07-22 07:17:49 +02:00 committed by GitHub
parent 563213d98f
commit a3326c3fc2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -136,11 +136,12 @@ struct AddAccountView: View {
instance = nil instance = nil
instanceFetchError = nil instanceFetchError = nil
} }
} catch _ as DecodingError { } catch _ as ServerError {
instance = nil instance = nil
instanceFetchError = "account.add.error.instance-not-supported" instanceFetchError = "account.add.error.instance-not-supported"
} catch { } catch {
instance = nil instance = nil
instanceFetchError = nil
} }
} }
} }