Method: Bundler::Thor::Shell::Basic#error
- Defined in:
- lib/bundler/vendor/thor/lib/thor/shell/basic.rb
#error(statement) ⇒ Object
Called if something goes wrong during the execution. This is used by Bundler::Thor internally and should not be used inside your scripts. If something went wrong, you can always raise an exception. If you raise a Bundler::Thor::Error, it will be rescued and wrapped in the method below.
251 252 253 |
# File 'lib/bundler/vendor/thor/lib/thor/shell/basic.rb', line 251 def error(statement) stderr.puts statement end |