lib/nanoc/cli/error_handler.rb
# Writes a compact representation of the error, suitable for a terminal, on
# the given stream (probably stderr).
#
# @param [Error] error The error that should be described
#
# @param [IO] stream The stream to write the description too
#
# @api private
#
# @return [void]
Writes a compact representation of the error, suitable for a terminal, on
the given stream (probably stderr).
Writes a compact representation of the error suitable for a terminal on the given stream ( probably stderr ) .
def write_compact_error(error, stream)
      stream.puts
      stream.puts "Captain! We’ve been hit!"
      self.write_error_message(    stream, error)
      self.write_compilation_stack(stream, error)
      self.write_stack_trace(      stream, error)
      self.write_issue_link(stream)
    end
def write_compact_error ( error , stream ) stream . puts stream . puts "Captain! We’ve been hit!" self . write_error_message ( stream , error ) self . write_compilation_stack ( stream , error ) self . write_stack_trace ( stream , error ) self . write_issue_link ( stream ) end
Writes a compact representation of the error, suitable for a terminal, on
the given stream (probably stderr).
Writes a compact representation of the error suitable for a terminal on the given stream ( probably stderr ) .
# Header # Sections # Issue link
None
void
error
stream
stream The stream to write the description too
stream The stream to write the description too
api
None