Skip to content

Commit 1628b52

Browse files
committed
DemystifyExceptions: Display generated name for lambdas
1 parent 2e4600d commit 1628b52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/DemystifyExceptions/Demystify/EnhancedStackTrace.Frames.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using System.Collections.Generic;
88
using System.Collections.Generic.Enumerable;
99
using System.Diagnostics.Internal;
10+
using System.IO;
1011
using System.Linq;
1112
using System.Reflection;
1213
using System.Runtime.CompilerServices;
@@ -234,7 +235,7 @@ private static bool TryResolveGeneratedName(ref MethodBase method, out Type type
234235
break;
235236
}
236237
case GeneratedNameKind.LambdaMethod:
237-
subMethodName = "";
238+
subMethodName = generatedName;
238239
break;
239240
}
240241

0 commit comments

Comments
 (0)