From 167992b0a7baed5b047a5210d861a65d1ad6c415 Mon Sep 17 00:00:00 2001 From: daver32 <38791383+daver32@users.noreply.github.com> Date: Tue, 26 Jul 2022 20:39:50 +0200 Subject: [PATCH] improve exception diagnosis --- InterfaceGenerator/AutoInterfaceGenerator.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InterfaceGenerator/AutoInterfaceGenerator.cs b/InterfaceGenerator/AutoInterfaceGenerator.cs index c470612..026ed36 100644 --- a/InterfaceGenerator/AutoInterfaceGenerator.cs +++ b/InterfaceGenerator/AutoInterfaceGenerator.cs @@ -39,8 +39,8 @@ namespace InterfaceGenerator { var descriptor = new DiagnosticDescriptor( "InterfaceGenerator.CriticalError", - "Exception thrown in InterfaceGenerator", - $"{exception.Message} {exception.StackTrace}", + $"Exception thrown in InterfaceGenerator", + $"{exception.GetType().FullName} {exception.Message} {exception.StackTrace.Trim()}", "InterfaceGenerator", DiagnosticSeverity.Error, true,