Skip to content

Commit

Permalink
Show full backtrace when cleaned backtrace is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
aeroastro committed Oct 10, 2017
1 parent 733354b commit 4740f5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/shinq/launcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def lifecycle_limit?

def format_error_message(error)
if defined?(::Rails) && ::Rails.backtrace_cleaner
backtrace = ::Rails.backtrace_cleaner.clean(error.backtrace || [])
backtrace = ::Rails.backtrace_cleaner.clean(error.backtrace || []).presence || error.backtrace
else
backtrace = error.backtrace
end
Expand Down

0 comments on commit 4740f5d

Please sign in to comment.