Skip to content

Commit

Permalink
issue #132: don't assume that exceptions have a backtrace
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderadam committed Mar 12, 2018
1 parent 7fab90e commit 2a5b12f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/party_foul/issue_renderers/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def comment
#
# @return [String]
def stack_trace
exception.backtrace.map do |line|
(exception.backtrace || []).map do |line|
if from_bundler?(line)
format_line(line)
elsif (matches = extract_file_name_and_line_number(line))
Expand Down

0 comments on commit 2a5b12f

Please sign in to comment.