Including erroName parameter
This commit is contained in:
@@ -61,9 +61,9 @@ class Program
|
|||||||
return 0;
|
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()
|
static void HelpMessage()
|
||||||
|
|||||||
Reference in New Issue
Block a user