Merge 17067 from trunk.

This commit is contained in:
Tom Hughes 2009-10-13 20:16:03 +00:00
commit 20a861392e

View file

@ -193,6 +193,8 @@ class ApplicationController < ActionController::Base
rescue OSM::APIError => ex rescue OSM::APIError => ex
report_error ex.message, ex.status report_error ex.message, ex.status
rescue Exception => ex rescue Exception => ex
logger.info("API threw unexpected #{ex.class} exception: #{ex.message}")
ex.backtrace.each { |l| logger.info(l) }
report_error "#{ex.class}: #{ex.message}", :internal_server_error report_error "#{ex.class}: #{ex.message}", :internal_server_error
end end
end end