Skip to content

Commit 466ab38

Browse files
ealdentdefunkt
authored andcommitted
some failures can be generated with no payload, which causes the failed view to bork on no method error (NilClass#[])
1 parent 3f51459 commit 466ab38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/resque/server/views/failed.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
</div>
2929
</dd>
3030
<dt>Class</dt>
31-
<dd><code><%= job['payload']['class'] %></code></dd>
31+
<dd><code><%= job['payload'] ? job['payload']['class'] : 'nil' %></code></dd>
3232
<dt>Arguments</dt>
33-
<dd><pre><%=h show_args(job['payload']['args']) %></pre></dd>
33+
<dd><pre><%=h job['payload'] ? show_args(job['payload']['args']) : 'nil' %></pre></dd>
3434
<dt>Exception</td>
3535
<dd><code><%= job['exception'] %></code></dd>
3636
<dt>Error</dt>

0 commit comments

Comments
 (0)