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

View file

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