app/controllers/concerns/blacklight/base.rb in blacklight-6.5.0 vs app/controllers/concerns/blacklight/base.rb in blacklight-6.6.0
- old
+ new
@@ -16,10 +16,9 @@
protected
# when The index throws an error (Blacklight::Exceptions::InvalidRequest), this method is executed.
def handle_request_error(exception)
-
if Rails.env.development? || Rails.env.test?
raise exception # Rails own code will catch and give usual Rails error page with stack trace
else
flash_notice = I18n.t('blacklight.search.errors.request_error')