Module: ForemanBootdisk::PrettyError

Extended by:
ActiveSupport::Concern
Included in:
DisksController, SubnetDisksController
Defined in:
app/helpers/concerns/foreman_bootdisk/pretty_error.rb

Instance Method Summary collapse

Instance Method Details

#error_rendering(exception) ⇒ Object



7
8
9
10
11
# File 'app/helpers/concerns/foreman_bootdisk/pretty_error.rb', line 7

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