app/controllers/download_controller.rb
def flash_error_message(exception)
    message = if exception.url.present?
                t('geoblacklight.download.error_with_url',
                            link: view_context
                                  .link_to(exception.url,
                                           exception.url,
                                           target: 'blank'))
                  .html_safe
              else
                t('geoblacklight.download.error')
              end
    message
  end
##
# Creates an error flash message with failed download url
# @param [Geoblacklight::Exceptions::ExternalDownloadFailed] Download failed
# exception
# @return [String] error message to display in flash
Creates an error flash message with failed download url
Creates an error flash message with failed download url
def flash_error_message(exception)
    message = if exception.url.present?
                t('geoblacklight.download.error_with_url',
                            link: view_context
                                  .link_to(exception.url,
                                           exception.url,
                                           target: 'blank'))
                  .html_safe
              else
                t('geoblacklight.download.error')
              end
    message
  end
def flash_error_message ( exception ) message = if exception . url . present? t ( 'geoblacklight.download.error_with_url' , link : view_context . link_to ( exception . url , exception . url , target : 'blank' ) ) . html_safe else t ( 'geoblacklight.download.error' ) end message end
Creates an error flash message with failed download url
Creates an error flash message with failed download url
error message to display in flash
error message to display in flash
String
exception
Download failed exception
Download failed exception