From 200da89d75416e63dae6a0e62e6193d69821adf6 Mon Sep 17 00:00:00 2001 From: hawkeye116477 Date: Sun, 18 Feb 2024 00:24:20 +0100 Subject: [PATCH] Add better descriptions for error messages --- src/LegendaryDownloadManager.xaml.cs | 4 ++-- src/LegendaryLauncher.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/LegendaryDownloadManager.xaml.cs b/src/LegendaryDownloadManager.xaml.cs index 241b2b9..6f81dcc 100644 --- a/src/LegendaryDownloadManager.xaml.cs +++ b/src/LegendaryDownloadManager.xaml.cs @@ -447,7 +447,7 @@ public async Task Install(string gameID, string gameTitle, string downloadSize, } catch (Exception ex) { - logger.Error(ex.Message); + logger.Error($"Failed to create registry key for {gameTitle}. Error: {ex.Message}"); } } if (downloadProperties.installPrerequisites) @@ -473,7 +473,7 @@ public async Task Install(string gameID, string gameTitle, string downloadSize, } catch (Exception ex) { - logger.Error($"Failed to launch prerequisites executable: {ex.Message}"); + logger.Error($"Failed to launch prerequisites executable. Error: {ex.Message}"); } } } diff --git a/src/LegendaryLauncher.cs b/src/LegendaryLauncher.cs index 3cb82dd..6ac97bb 100644 --- a/src/LegendaryLauncher.cs +++ b/src/LegendaryLauncher.cs @@ -379,7 +379,7 @@ public static bool IsEaAppInstalled } catch (Exception ex) { - logger.Error(ex.Message); + logger.Error($"Failed to get launcher path. Error: {ex.Message}"); } return !string.IsNullOrEmpty(launcherPath) && File.Exists(launcherPath); }