Browse Source

backtrace return unless positive

pagy
pvincent 10 months ago
parent
commit
732da37263
  1. 2
      lib/formatters/basic_formatter.rb

2
lib/formatters/basic_formatter.rb

@ -170,7 +170,7 @@ class BasicFormatter < SemanticLogger::Formatters::Color # rubocop:disable Metri
end
def backtrace(stack)
nil unless stack.count.positive?
return unless stack.count.positive?
"\n#{before_message} #{ANSI_ERROR}#{stack.join("\n#{before_message} #{ANSI_ERROR}")}#{color_map.clear}"
end

Loading…
Cancel
Save