From aeefac8cd67fcb0740cbbd31d0e248fa81a35e77 Mon Sep 17 00:00:00 2001 From: Thiago Carvalho Date: Fri, 5 Apr 2024 09:43:33 -0300 Subject: [PATCH] Update ardrive_downloader.dart --- lib/download/ardrive_downloader.dart | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/lib/download/ardrive_downloader.dart b/lib/download/ardrive_downloader.dart index 29ac075735..f6b99f6018 100644 --- a/lib/download/ardrive_downloader.dart +++ b/lib/download/ardrive_downloader.dart @@ -150,14 +150,11 @@ class _ArDriveDownloader implements ArDriveDownloader { }); subscription.onError((e, s) { - if (e is! ActionCanceledException) { - logger.e( - 'Failed to download of save the file. Closing progressController...', - e, - s, - ); - } - + logger.e( + 'Failed to download of save the file. Closing progressController...', + e, + s, + ); // TODO: we can show a different message for different errors e.g. when `e` is ActionCanceledException progressController.addError(e); progressController.close();