Sha256: 78ae58db8a1477aa78a4117aece82a627aeffafcd58c2139b5c93166c224ff7d

Contents?: true

Size: 313 Bytes

Versions: 6

Compression:

Stored size: 313 Bytes

Contents

module Hem
  module ErrorHandlers
    class Debug
      include Hem::ErrorHandlers::ExitCodeMap

      def handle error
        Hem.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

6 entries across 6 versions & 1 rubygems

Version Path
hem-1.0.1.beta6 lib/hem/error_handlers/debug.rb
hem-1.0.1.beta5 lib/hem/error_handlers/debug.rb
hem-1.0.1.beta4 lib/hem/error_handlers/debug.rb
hem-1.0.1.beta3 lib/hem/error_handlers/debug.rb
hem-1.0.1.beta2 lib/hem/error_handlers/debug.rb
hem-1.0.1.beta1 lib/hem/error_handlers/debug.rb