Sha256: 6a546b92de1f6cccaf19f44cd1965a8277a5677ab4439bf020e98e9634ec4d02

Contents?: true

Size: 316 Bytes

Versions: 21

Compression:

Stored size: 316 Bytes

Contents

module Hobo
  module ErrorHandlers
    class Debug
      include Hobo::ErrorHandlers::ExitCodeMap

      def handle error
        Hobo.ui.error "\n(#{error.class}) #{error.message}\n\n#{(error.backtrace || []).join("\n")}"
        return EXIT_CODES[error.class.to_s] || DEFAULT_EXIT_CODE
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
hobo-inviqa-0.0.15 lib/hobo/error_handlers/debug.rb
hobo-inviqa-0.0.14 lib/hobo/error_handlers/debug.rb
hobo-inviqa-0.0.13 lib/hobo/error_handlers/debug.rb
hobo-inviqa-0.0.11 lib/hobo/error_handlers/debug.rb
hobo-inviqa-0.0.10 lib/hobo/error_handlers/debug.rb
hobo-inviqa-0.0.10.pre.rc11 lib/hobo/error_handlers/debug.rb
hobo-inviqa-0.0.10.pre.rc10 lib/hobo/error_handlers/debug.rb
hobo-inviqa-0.0.10.pre.rc9 lib/hobo/error_handlers/debug.rb
hobo-inviqa-0.0.10.pre.rc8 lib/hobo/error_handlers/debug.rb
hobo-inviqa-0.0.10.pre.rc7 lib/hobo/error_handlers/debug.rb
hobo-inviqa-0.0.10.pre.rc6 lib/hobo/error_handlers/debug.rb
hobo-inviqa-0.0.10.pre.rc4 lib/hobo/error_handlers/debug.rb
hobo-inviqa-0.0.10.pre.rc2 lib/hobo/error_handlers/debug.rb
hobo-inviqa-0.0.9 lib/hobo/error_handlers/debug.rb
hobo-inviqa-0.0.9.pre.rc2 lib/hobo/error_handlers/debug.rb
hobo-inviqa-0.0.9.pre.rc1 lib/hobo/error_handlers/debug.rb
hobo-inviqa-0.0.9.pre.alpha lib/hobo/error_handlers/debug.rb
hobo-inviqa-0.0.8 lib/hobo/error_handlers/debug.rb
hobo-inviqa-0.0.7.pre.rc3 lib/hobo/error_handlers/debug.rb
hobo-inviqa-0.0.7.pre.rc2 lib/hobo/error_handlers/debug.rb