Module: Climatic::Utils::ScriptHelper
- Included in:
- Initializer, Script::Base
- Defined in:
- lib/climatic/utils/script_helper.rb
Instance Method Summary collapse
Instance Method Details
#display_exit_error(e) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/climatic/utils/script_helper.rb', line 6 def display_exit_error(e) puts "Program aborted with message: '#{e.}'." if Climatic.config[:debug] Climatic.logger.fatal "#{e.}\nBacktrace:\n#{e.backtrace.join("\n\t")}" else puts ' Use --debug option for more detail (see --help).' end end |