Skip to content

Commit f99227a

Browse files
committedNov 22, 2024
Ensure ToStringWithOriginalStackTrace works regardless of PreserveOriginalStackTrace
1 parent e2a1c1b commit f99227a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed
 

‎src/Hangfire.Core/Common/ShallowExceptionHelper.cs

-5
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@ public static string ToStringWithOriginalStackTrace([NotNull] this Exception exc
3636
{
3737
if (exception == null) throw new ArgumentNullException(nameof(exception));
3838

39-
if (!exception.Data.Contains(DataKey))
40-
{
41-
return GetFirstLines(exception.ToString(), numLines);
42-
}
43-
4439
return GetFirstLines(ToStringHelper(exception, false), numLines);
4540
}
4641

0 commit comments

Comments
 (0)