示例#1
0
        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);
        }
示例#2
0
 static void LogError(ErrorInfo err, params object[] args)
 {
     err.LogConsole(args);
 }