static void LogException(Exception e, ErrorInfo err, params object[] args) { var ce = e as CompilerException; if (ce != null) { Console.WriteLine(ce.Message); return; } err.LogConsole(args); Console.WriteLine("Exception:\n{0}", e); }
static void LogError(ErrorInfo err, params object[] args) { err.LogConsole(args); }