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:
@@ -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]");
|
||||
|
||||
Reference in New Issue
Block a user