Method: TTY::Command::ExitError#info

Defined in:
lib/tty/command/exit_error.rb

#info(cmd_name, result) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



19
20
21
22
23
24
# File 'lib/tty/command/exit_error.rb', line 19

def info(cmd_name, result)
  "Running `#{cmd_name}` failed with\n" \
  "  exit status: #{result.exit_status}\n" \
  "  stdout: #{extract_output(result.out)}\n" \
  "  stderr: #{extract_output(result.err)}\n"
end