private static void WriteError(Exception e)
{
var currentColor = Console.ForegroundColor;
try
{
Console.ForegroundColor = ConsoleColor.Red;
Console.Error.WriteLine(e.GetBaseException().Message);
}
finally
{
Console.ForegroundColor = currentColor;
}
}
}