diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 055a6ca25..2b70fc294 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -19,7 +19,8 @@ def setup_view_paths_for(publication) prepend_view_path template_folder_for(publication) end - def record_not_found + def record_not_found(exception) + Rails.logger.warn "Error loading document: #{exception.message}" render body: { 'raw': "404 Not Found" }, status: :not_found end