Skip to content

Commit

Permalink
AddAccountView: fix error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Taufi committed Jul 21, 2024
1 parent 82338f8 commit 6e55806
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 6e55806

Please sign in to comment.