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
This commit is contained in:
2023-04-16 21:05:25 +02:00
parent d108d1ce21
commit bf693c638a

View File

@@ -61,11 +61,16 @@ 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()
{
Console.WriteLine($"Usage: {BINARY_NAME} <arguments> [optional arguments]");