We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdd6832 commit 28ee3b0Copy full SHA for 28ee3b0
lib/widgets/login.dart
@@ -146,7 +146,13 @@ class _AddAccountPageState extends State<AddAccountPage> {
146
});
147
try {
148
serverSettings = await getServerSettings(realmUrl: url!);
149
- // TODO(#35) report errors
+ } catch (e) {
150
+ if (!context.mounted) return;
151
+ // TODO(#35) give more helpful feedback; see `fetchServerSettings`
152
+ // in zulip-mobile's src/message/fetchActions.js. Needs #37.
153
+ showErrorDialog(context: context,
154
+ title: 'Could not connect', message: 'Failed to connect to server: $url');
155
+ return;
156
} finally {
157
setState(() {
158
_inProgress = false;
0 commit comments