diff --git a/src/main/kotlin/org/eclipse/hara/ddiclient/api/actors/FileDownloader.kt b/src/main/kotlin/org/eclipse/hara/ddiclient/api/actors/FileDownloader.kt index a21c505..de48dde 100644 --- a/src/main/kotlin/org/eclipse/hara/ddiclient/api/actors/FileDownloader.kt +++ b/src/main/kotlin/org/eclipse/hara/ddiclient/api/actors/FileDownloader.kt @@ -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() + 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)) }