Rename ExceptionFormats.None

This commit is contained in:
Patrik Svensson
2020-10-06 01:05:49 +02:00
committed by Patrik Svensson
parent 3c3afe7439
commit 39a8588dc3
5 changed files with 5 additions and 5 deletions

View File

@ -13,7 +13,7 @@ namespace Spectre.Console
/// <param name="console">The console.</param>
/// <param name="exception">The exception to write to the console.</param>
/// <param name="format">The exception format options.</param>
public static void WriteException(this IAnsiConsole console, Exception exception, ExceptionFormats format = ExceptionFormats.None)
public static void WriteException(this IAnsiConsole console, Exception exception, ExceptionFormats format = ExceptionFormats.Default)
{
Render(console, exception.GetRenderable(format));
}

View File

@ -14,7 +14,7 @@ namespace Spectre.Console
/// <param name="exception">The exception to format.</param>
/// <param name="format">The exception format options.</param>
/// <returns>A <see cref="IRenderable"/> representing the exception.</returns>
public static IRenderable GetRenderable(this Exception exception, ExceptionFormats format = ExceptionFormats.None)
public static IRenderable GetRenderable(this Exception exception, ExceptionFormats format = ExceptionFormats.Default)
{
return ExceptionFormatter.Format(exception, format);
}