Sha256: ccc7261a84bc0ba2e723fe3953649aaca5cc6ac5bd94bfd888765bf3ac2ec80f

Contents?: true

Size: 226 Bytes

Versions: 18

Compression:

Stored size: 226 Bytes

Contents

# frozen_string_literal: true

module GoNative
  module DSL
    module ErrorCatchable
      def call(...)
        super(...)
      rescue Error => e
        Utils::UI.error e.message
        exit 1
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
gonative-cli-1.4.4 lib/gonative/dsl/error_catchable.rb
gonative-cli-1.4.3 lib/gonative/dsl/error_catchable.rb
gonative-cli-1.4.2 lib/gonative/dsl/error_catchable.rb
gonative-cli-1.4.1 lib/gonative/dsl/error_catchable.rb
gonative-cli-1.4.0 lib/gonative/dsl/error_catchable.rb
gonative-cli-1.3.9 lib/gonative/dsl/error_catchable.rb
gonative-cli-1.3.8 lib/gonative/dsl/error_catchable.rb
gonative-cli-1.3.7 lib/gonative/dsl/error_catchable.rb
gonative-cli-1.3.6 lib/gonative/dsl/error_catchable.rb
gonative-cli-1.3.5 lib/gonative/dsl/error_catchable.rb
gonative-cli-1.3.4 lib/gonative/dsl/error_catchable.rb
gonative-cli-1.3.3 lib/gonative/dsl/error_catchable.rb
gonative-cli-1.3.2 lib/gonative/dsl/error_catchable.rb
gonative-cli-1.3.1 lib/gonative/dsl/error_catchable.rb
gonative-cli-1.3.0 lib/gonative/dsl/error_catchable.rb
gonative-cli-1.2.4 lib/gonative/dsl/error_catchable.rb
gonative-cli-1.2.3 lib/gonative/dsl/error_catchable.rb
gonative-cli-1.2.2 lib/gonative/dsl/error_catchable.rb