Skip to content

Commit

Permalink
Update d2n_streamed_upload.dart
Browse files Browse the repository at this point in the history
add error on the streameduploadresult
  • Loading branch information
thiagocarvalhodev committed Jul 22, 2024
1 parent 5dceaae commit 6b169e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ardrive_uploader/lib/src/d2n_streamed_upload.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ class D2NStreamedUpload implements StreamedUpload<UploadItem> {

upload.complete(StreamedUploadResult(success: true));
} catch (e) {
logger.e('D2NStreamedUpload.send: error while uploading', e);
upload.complete(StreamedUploadResult(success: false));
logger.i('D2NStreamedUpload.send: error while uploading');
upload.complete(StreamedUploadResult(success: false, error: e));
}
});

Expand Down

0 comments on commit 6b169e0

Please sign in to comment.