# File lib/nanoc/cli/error_handler.rb, line 295
    def write_stack_trace(stream, error, params={})
      self.write_section_header(stream, 'Stack trace', params)

      count = params[:verbose] ? -1 : 10
      error.backtrace[0...count].each_with_index do |item, index|
        stream.puts "  #{index}. #{item}"
      end
      if error.backtrace.size > count
        stream.puts "  ... #{error.backtrace.size - count} more lines omitted. See full crash log for details."
      end
    end