Skip to content

Commit

Permalink
Fix incorrect error message shown due to Spectre.Console parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
christianhelle committed Jan 14, 2025
1 parent ce53a6c commit 1edc5f3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Refitter/GenerateCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,8 @@ public override async Task<int> ExecuteAsync(CommandContext context, Settings se

if (exception is not OpenApiValidationException)
{
AnsiConsole.MarkupLine($"[red]Error: {exception.Message}[/]");
AnsiConsole.MarkupLine($"[red]Exception: {exception.GetType()}[/]");
AnsiConsole.MarkupLine($"[yellow]Stack Trace:{Crlf}{exception.StackTrace}[/]");
AnsiConsole.MarkupLine("[red]Exception:[/]");
AnsiConsole.WriteException(exception);
AnsiConsole.WriteLine();
}

Expand Down

0 comments on commit 1edc5f3

Please sign in to comment.