Skip to content

Commit

Permalink
Update ardrive_downloader.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagocarvalhodev committed Apr 5, 2024
1 parent 9e0422b commit aeefac8
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions lib/download/ardrive_downloader.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit aeefac8

Please sign in to comment.