Sha256: 43e3f9597d0828adea6104b32113c03055784dc5ccb8248a10ddc4657989f68e

Contents?: true

Size: 396 Bytes

Versions: 14

Compression:

Stored size: 396 Bytes

Contents

module Climatic
  module Utils

    module ScriptHelper

      def display_exit_error(e)
        puts "Program aborted with message: '#{e.message}'."
        if Climatic.config[:debug]
          Climatic.logger.fatal "#{e.message}\nBacktrace:\n#{e.backtrace.join("\n\t")}"
        else
          puts '  Use --debug option for more detail (see --help).'
        end
      end

    end

  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
climatic-0.2.40 lib/climatic/utils/script_helper.rb
climatic-0.2.39 lib/climatic/utils/script_helper.rb
climatic-0.2.38 lib/climatic/utils/script_helper.rb
climatic-0.2.37 lib/climatic/utils/script_helper.rb
climatic-0.2.36 lib/climatic/utils/script_helper.rb
climatic-0.2.35 lib/climatic/utils/script_helper.rb
climatic-0.2.34 lib/climatic/utils/script_helper.rb
climatic-0.2.32 lib/climatic/utils/script_helper.rb
climatic-0.2.31 lib/climatic/utils/script_helper.rb
climatic-0.2.30 lib/climatic/utils/script_helper.rb
climatic-0.2.29 lib/climatic/utils/script_helper.rb
climatic-0.2.28 lib/climatic/utils/script_helper.rb
climatic-0.2.27 lib/climatic/utils/script_helper.rb
climatic-0.2.26 lib/climatic/utils/script_helper.rb