Skip to content

Commit

Permalink
Change Download Trial exhaust message
Browse files Browse the repository at this point in the history
Fixed reporting multiple duplicate download error messages
in the final feedback

Signed-off-by: Saeed Rezaee <saeed.rezaee@kynetics.it>
  • Loading branch information
SaeedRe committed Jan 8, 2024
1 parent db17ea8 commit d73ac22
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ private constructor(
}

is Message.TrialExhausted -> {
val errors = state.errors.toMutableList()
errors.add(0, "trials exhausted due to errors (${fileToDownload.fileName})")
val errors = mutableListOf<String>()
errors.add(0, "Exhausted trials of downloading (${fileToDownload.fileName}) after ${state.currentAttempt} attempts!")
parent!!.send(Message.Error(channel, fileToDownload.md5, errors))
notificationManager.send(MessageListener.Message.Event.Error(errors))
}
Expand Down

0 comments on commit d73ac22

Please sign in to comment.