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-22.0.2 app/helpers/concerns/foreman_bootdisk/pretty_error.rb
foreman_bootdisk-22.0.1 app/helpers/concerns/foreman_bootdisk/pretty_error.rb
foreman_bootdisk-22.0.0 app/helpers/concerns/foreman_bootdisk/pretty_error.rb
foreman_bootdisk-21.0.6 app/helpers/concerns/foreman_bootdisk/pretty_error.rb
foreman_bootdisk-21.2.3 app/helpers/concerns/foreman_bootdisk/pretty_error.rb
foreman_bootdisk-21.2.2 app/helpers/concerns/foreman_bootdisk/pretty_error.rb
foreman_bootdisk-21.0.5 app/helpers/concerns/foreman_bootdisk/pretty_error.rb
foreman_bootdisk-21.2.1 app/helpers/concerns/foreman_bootdisk/pretty_error.rb
foreman_bootdisk-21.2.0 app/helpers/concerns/foreman_bootdisk/pretty_error.rb
foreman_bootdisk-21.1.0 app/helpers/concerns/foreman_bootdisk/pretty_error.rb
foreman_bootdisk-19.0.9 app/helpers/concerns/foreman_bootdisk/pretty_error.rb
foreman_bootdisk-21.0.4 app/helpers/concerns/foreman_bootdisk/pretty_error.rb
foreman_bootdisk-21.0.3 app/helpers/concerns/foreman_bootdisk/pretty_error.rb
foreman_bootdisk-19.0.8 app/helpers/concerns/foreman_bootdisk/pretty_error.rb
foreman_bootdisk-21.0.2 app/helpers/concerns/foreman_bootdisk/pretty_error.rb
foreman_bootdisk-19.0.7 app/helpers/concerns/foreman_bootdisk/pretty_error.rb
foreman_bootdisk-21.0.1 app/helpers/concerns/foreman_bootdisk/pretty_error.rb
foreman_bootdisk-21.0.0 app/helpers/concerns/foreman_bootdisk/pretty_error.rb
foreman_bootdisk-19.0.6 app/helpers/concerns/foreman_bootdisk/pretty_error.rb
foreman_bootdisk-19.0.4.1 app/helpers/concerns/foreman_bootdisk/pretty_error.rb