private void DisplayException(Exception e) { try { _console.ForegroundColor = ConsoleColor.Red; _console.Error.Write(_objectFormatter.FormatException(e)); } finally { _console.ResetColor(); } }
private void DisplayException(Exception e) { try { _console.SetForegroundColor(ConsoleColor.Red); if (e is FileLoadException && e.InnerException is InteractiveAssemblyLoaderException) { _console.Error.WriteLine(e.InnerException.Message); } else { _console.Error.Write(_objectFormatter.FormatException(e)); } } finally { _console.ResetColor(); } }