Skip to content

Commit d282511

Browse files
author
mwatson
committed
Fix method source not being set
1 parent 869aa30 commit d282511

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Src/StackifyLib/Models/ErrorItem.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,11 @@ private void AddTraceFrames(Exception ex)
131131

132132
var fullName = GetMethodFullName(method);
133133

134-
bool isSource = false;//(ex.TargetSite != null && ex.TargetSite == method);
134+
bool isSource = false;
135+
136+
#if NET451 || NET45 || NET40
137+
isSource = (ex.TargetSite != null && ex.TargetSite == method);
138+
#endif
135139

136140
if (isSource)
137141
{

0 commit comments

Comments
 (0)