From bf693c638a754c454cb01d9b47b08494db6c2f89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miskolczi=20Rich=C3=A1rd?= Date: Sun, 16 Apr 2023 21:05:25 +0200 Subject: [PATCH] I messed up, but I fixed it I just realized that the event of ConfigFileManager needs a method that only accepts an Exception type parameter --- CLI/Program.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CLI/Program.cs b/CLI/Program.cs index e235c90..f7b3bc9 100644 --- a/CLI/Program.cs +++ b/CLI/Program.cs @@ -61,10 +61,15 @@ class Program return 0; } - static void ErrorOccured(Exception e, string errorName = "Error") + static void ErrorOccured(Exception e, string errorName) { Console.WriteLine($"{errorName}: {e}\nMore details:\n{e.ToString()}"); } + + static void ErrorOccured(Exception e) + { + Console.WriteLine($"Unexpected error: {e}\nMore details:\n{e.ToString()}"); + } static void HelpMessage() {