Sha256: 78fef424c586f512ff38a4edc2edc7e6d493b416c9191e5ec4ad173eb0649fc5

Contents?: true

Size: 311 Bytes

Versions: 28

Compression:

Stored size: 311 Bytes

Contents

# frozen_string_literal: true

module ForemanBootdisk
  module PrettyError
    extend ActiveSupport::Concern

    def error_rendering(exception)
      msg = _('Failed to render boot disk template')
      error("#{msg}: #{exception.message}")
      ::Foreman::Logging.exception(msg, exception)
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
foreman_bootdisk-19.0.5 app/helpers/concerns/foreman_bootdisk/pretty_error.rb
foreman_bootdisk-19.0.4 app/helpers/concerns/foreman_bootdisk/pretty_error.rb
foreman_bootdisk-19.0.3 app/helpers/concerns/foreman_bootdisk/pretty_error.rb
foreman_bootdisk-19.0.2 app/helpers/concerns/foreman_bootdisk/pretty_error.rb
foreman_bootdisk-19.0.1 app/helpers/concerns/foreman_bootdisk/pretty_error.rb
foreman_bootdisk-19.0.0 app/helpers/concerns/foreman_bootdisk/pretty_error.rb
foreman_bootdisk-18.1.0 app/helpers/concerns/foreman_bootdisk/pretty_error.rb
foreman_bootdisk-18.0.0 app/helpers/concerns/foreman_bootdisk/pretty_error.rb