AddAccountView: fix error handling (#2137)
This commit is contained in:
parent
563213d98f
commit
a3326c3fc2
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue