reenable safety net for report exceptions

git-svn-id: https://dev.finn.de/svn/cockpit/trunk@504 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
hjust 15 years ago
parent 3015251cf6
commit cb02bd3827
  1. 34
      app/controllers/cost_reports_controller.rb

@ -49,23 +49,23 @@ class CostReportsController < ApplicationController
else else
render :layout => !request.xhr? render :layout => !request.xhr?
end end
# rescue Exception => e rescue Exception => e
# logger.error "#{e.class.name}: #{e.message}" if logger logger.error "#{e.class.name}: #{e.message}" if logger
# session.delete :cost_query session.delete :cost_query
#
# # Give it a name, required to be valid # Give it a name, required to be valid
# @query = CostQuery.new(:name => "_") @query = CostQuery.new(:name => "_")
# @query.project = @project @query.project = @project
#
# get_entries(limit) get_entries(limit)
# respond_to do |format| respond_to do |format|
# format.html do format.html do
# @custom_error = l(:error_generic) @custom_error = l(:error_generic)
# render :layout => !request.xhr? render :layout => !request.xhr?
# end end
# format.atom {render_500(l(:error_generic))} format.atom {render_500(l(:error_generic))}
# format.csv {render_500(l(:error_generic))} format.csv {render_500(l(:error_generic))}
# end end
end end
def new def new

Loading…
Cancel
Save