From d5412b8645aa1d259d13340052efb5cc05668cb7 Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Mon, 10 Jan 2022 21:24:01 +0530 Subject: [PATCH] Bugfix: Show reason for sync failure on UI --- lib/services/remote_sync_service.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/services/remote_sync_service.dart b/lib/services/remote_sync_service.dart index c79dd3533..14e39c88e 100644 --- a/lib/services/remote_sync_service.dart +++ b/lib/services/remote_sync_service.dart @@ -104,7 +104,12 @@ class RemoteSyncService { _logger.severe("Error executing remote sync ", e, s); _existingSync.complete(); _existingSync = null; - if (e is UnauthorizedError) { + // rethrow whitelisted error so that UI status can be updated correctly. + if (e is UnauthorizedError || + e is NoActiveSubscriptionError || + e is WiFiUnavailableError || + e is StorageLimitExceededError || + e is SyncStopRequestedError) { rethrow; } }