Skip to content

Commit

Permalink
Merge pull request #585 from christianhelle/fix-error-message-parsing
Browse files Browse the repository at this point in the history
Fix incorrect error message shown due to Spectre.Console parsing
  • Loading branch information
christianhelle authored Jan 14, 2025
2 parents 0794da8 + 1edc5f3 commit adf750e
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 adf750e

Please sign in to comment.