Skip to content

Commit 438f261

Browse files
Merge pull request #339 from kindermannhubert/exceptionNameInPanelTitle
Show exception type in panel title.
2 parents b6a4516 + 09748ae commit 438f261

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CSharpRepl/ReadEvalPrintLoop.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ private static async Task PrintAsync(RoslynServices roslyn, IConsoleEx console,
131131

132132
var panel = new Panel(formattedError.ToParagraph())
133133
{
134-
Header = new PanelHeader(" Exception ", Justify.Center),
134+
Header = new PanelHeader(err.Exception.GetType().Name, Justify.Center),
135135
BorderStyle = new Style(foreground: Color.Red)
136136
};
137137
console.WriteError(panel, formattedError.ToString());

0 commit comments

Comments
 (0)