Skip to content

Commit a0217ac

Browse files
committed
Don't hide exception details on Failed Jobs page when exception message is empty
1 parent d9d6748 commit a0217ac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: src/Hangfire.Core/Dashboard/Pages/FailedJobsPage.cshtml

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
<div class="word-break">
111111
@Html.JobNameLink(job.Key, job.Value.Job)
112112
</div>
113-
@if (!String.IsNullOrEmpty(job.Value.ExceptionMessage))
113+
@if (!String.IsNullOrEmpty(job.Value.ExceptionMessage) || !String.IsNullOrEmpty(job.Value.ExceptionDetails))
114114
{
115115
<div class="text-muted">
116116
@job.Value.Reason <a class="expander" href="#">@(index == 0 ? Strings.Common_LessDetails : Strings.Common_MoreDetails)</a>

Diff for: src/Hangfire.Core/Dashboard/Pages/FailedJobsPage.cshtml.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ public override void Execute()
541541

542542

543543
#line 113 "..\..\Dashboard\Pages\FailedJobsPage.cshtml"
544-
if (!String.IsNullOrEmpty(job.Value.ExceptionMessage))
544+
if (!String.IsNullOrEmpty(job.Value.ExceptionMessage) || !String.IsNullOrEmpty(job.Value.ExceptionDetails))
545545
{
546546

547547

0 commit comments

Comments
 (0)