diff --git a/CLI/Program.cs b/CLI/Program.cs index 8e0a815..e235c90 100644 --- a/CLI/Program.cs +++ b/CLI/Program.cs @@ -61,9 +61,9 @@ class Program return 0; } - static void ErrorOccured(Exception e) + static void ErrorOccured(Exception e, string errorName = "Error") { - Console.WriteLine($"The following error occured while trying to load your profile:\n{e}\nMore details:\n{e.ToString()}"); + Console.WriteLine($"{errorName}: {e}\nMore details:\n{e.ToString()}"); } static void HelpMessage()