Display error message instead of stack trace in battlefield news when failing to fetch news

This commit is contained in:
abc013
2021-10-27 09:19:36 +02:00
committed by abcdefg30
parent 1a56cee9a1
commit c33290c19b

View File

@@ -312,7 +312,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
{ {
Game.RunAfterTick(() => // run on the main thread Game.RunAfterTick(() => // run on the main thread
{ {
SetNewsStatus($"Failed to retrieve news: {e}"); SetNewsStatus($"Failed to retrieve news: {e.Message}");
}); });
} }
}); });