Skip to content

Commit

Permalink
Add better descriptions for error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeye116477 committed Feb 17, 2024
1 parent d79fc4e commit 200da89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/LegendaryDownloadManager.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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}");
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/LegendaryLauncher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 200da89

Please sign in to comment.