From d73ac228fa7933c10eb18d0108558017672741f0 Mon Sep 17 00:00:00 2001 From: Saeed Rezaee Date: Mon, 8 Jan 2024 09:47:20 +0100 Subject: [PATCH] Change Download Trial exhaust message Fixed reporting multiple duplicate download error messages in the final feedback Signed-off-by: Saeed Rezaee --- .../org/eclipse/hara/ddiclient/api/actors/FileDownloader.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) }