Method: Ing::Shell::Basic#error

Defined in:
lib/ing/shell.rb

#error(statement) ⇒ Object

Called if something goes wrong during the execution. This is used by Thor internally and should not be used inside your scripts. If something went wrong, you can always raise an exception. If you raise a Thor::Error, it will be rescued and wrapped in the method below.



289
290
291
# File 'lib/ing/shell.rb', line 289

def error(statement)
  stderr.puts statement
end