Skip to content

Commit

Permalink
Merge pull request #339 from kindermannhubert/exceptionNameInPanelTitle
Browse files Browse the repository at this point in the history
Show exception type in panel title.
  • Loading branch information
kindermannhubert authored Mar 16, 2024
2 parents b6a4516 + 09748ae commit 438f261
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CSharpRepl/ReadEvalPrintLoop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ private static async Task PrintAsync(RoslynServices roslyn, IConsoleEx console,

var panel = new Panel(formattedError.ToParagraph())
{
Header = new PanelHeader(" Exception ", Justify.Center),
Header = new PanelHeader(err.Exception.GetType().Name, Justify.Center),
BorderStyle = new Style(foreground: Color.Red)
};
console.WriteError(panel, formattedError.ToString());
Expand Down

0 comments on commit 438f261

Please sign in to comment.