Sha256: 4004b884c640cc6fe314955a7f6592445cc5840dac96a7630a012b2ea3a3bb87

Contents?: true

Size: 292 Bytes

Versions: 1

Compression:

Stored size: 292 Bytes

Contents

# frozen_string_literal: true

module Bitbar
  module Concourse
    class ErrorPresenter
      def initialize(error, target_name)
        @error = error
        @target_name = target_name
      end

      def to_s
        "#{@target_name}\n---\n#{@error.message}"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bitbar-concourse-1.1 lib/bitbar/concourse/error_presenter.rb