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