From 14b5504ea7ef5086fbc0d86b0e20130edafc6d8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Wed, 23 Nov 2022 00:26:27 +0100 Subject: [PATCH] Show the host in the download failed error message. --- .../Widgets/Logic/Installation/DownloadPackageLogic.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.Common/Widgets/Logic/Installation/DownloadPackageLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/Installation/DownloadPackageLogic.cs index 471d19e7b2..e7648204fc 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/Installation/DownloadPackageLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/Installation/DownloadPackageLogic.cs @@ -139,11 +139,12 @@ namespace OpenRA.Mods.Common.Widgets.Logic Action onError = s => Game.RunAfterTick(() => { - Log.Write("install", "Download failed: " + s); + var host = downloadHost ?? modData.Translation.GetString(UnknownHost); + Log.Write("install", $"Download from {host} failed: " + s); progressBar.Indeterminate = false; progressBar.Percentage = 100; - getStatusText = () => "Error: " + s; + getStatusText = () => $"{host}: Error: {s}"; retryButton.IsVisible = () => true; cancelButton.OnClick = Ui.CloseWindow; });