diff --git a/lib/formatters/basic_formatter.rb b/lib/formatters/basic_formatter.rb index 1e9d32d..7a508b1 100644 --- a/lib/formatters/basic_formatter.rb +++ b/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