From c33290c19b2e08ab37754fb9e20eb31a10b845cd Mon Sep 17 00:00:00 2001 From: abc013 Date: Wed, 27 Oct 2021 09:19:36 +0200 Subject: [PATCH] Display error message instead of stack trace in battlefield news when failing to fetch news --- OpenRA.Mods.Common/Widgets/Logic/MainMenuLogic.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Widgets/Logic/MainMenuLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/MainMenuLogic.cs index c57a015133..8f42fd31d6 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/MainMenuLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/MainMenuLogic.cs @@ -312,7 +312,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic { Game.RunAfterTick(() => // run on the main thread { - SetNewsStatus($"Failed to retrieve news: {e}"); + SetNewsStatus($"Failed to retrieve news: {e.Message}"); }); } });