File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -730,8 +730,6 @@ class UpdateMachine {
730
730
} catch (e) {
731
731
assert (debugLog ('Error fetching initial snapshot: $e \n '
732
732
'Backing off, then will retry…' ));
733
- // TODO perhaps suppress this message if error transient
734
- reportErrorToUserBriefly ('Error loading server data, will retry: $e ' );
735
733
await (backoffMachine ?? = BackoffMachine ()).wait ();
736
734
assert (debugLog ('… Backoff wait complete, retrying initial fetch.' ));
737
735
}
@@ -780,6 +778,7 @@ class UpdateMachine {
780
778
switch (e) {
781
779
case ZulipApiException (code: 'BAD_EVENT_QUEUE_ID' ):
782
780
assert (debugLog ('Lost event queue for $store . Replacing…' ));
781
+ reportErrorToUserBriefly ('Reconnecting to server.' );
783
782
await store._globalStore._reloadPerAccount (store.accountId);
784
783
dispose ();
785
784
debugLog ('… Event queue replaced.' );
@@ -797,7 +796,7 @@ class UpdateMachine {
797
796
default :
798
797
assert (debugLog ('Error polling event queue for $store : $e \n '
799
798
'Backing off and retrying even though may be hopeless…' ));
800
- // TODO tell user on non-transient error in polling
799
+ reportErrorToUserBriefly ( 'Error loading server data, will retry: $ e ' );
801
800
await backoffMachine.wait ();
802
801
assert (debugLog ('… Backoff wait complete, retrying poll.' ));
803
802
continue ;
You can’t perform that action at this time.
0 commit comments