Skip to content

Commit

Permalink
AddAccountView: fix error handling (#2137)
Browse files Browse the repository at this point in the history
  • Loading branch information
Taufi authored Jul 22, 2024
1 parent 563213d commit a3326c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion IceCubesApp/App/Tabs/Settings/AddAccountsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
Expand Down

0 comments on commit a3326c3

Please sign in to comment.