From ee9139698424ef4be4171cf07cbbcd462417e00c Mon Sep 17 00:00:00 2001 From: rob-v Date: Thu, 13 Apr 2017 18:50:52 +0200 Subject: [PATCH] Add exception to Archive extraction failed (Invalid archive) error ##12985 --- .../Widgets/Logic/Installation/DownloadPackageLogic.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenRA.Mods.Common/Widgets/Logic/Installation/DownloadPackageLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/Installation/DownloadPackageLogic.cs index 89e2b1bd51..bb3ad5a6a5 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/Installation/DownloadPackageLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/Installation/DownloadPackageLogic.cs @@ -164,9 +164,9 @@ namespace OpenRA.Mods.Common.Widgets.Logic Game.RunAfterTick(() => { Ui.CloseWindow(); onSuccess(); }); } - catch (Exception) + catch (Exception e) { - Log.Write("install", "Extraction failed"); + Log.Write("install", "Archive extraction failed: " + e.ToString()); foreach (var f in extracted) { @@ -174,7 +174,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic File.Delete(f); } - onError("Invalid archive"); + onError("Archive extraction failed"); } finally {