Commit 0abdcd2b authored by Hugo's avatar Hugo
Browse files

Minor logging improvement

parent 6e0ada7c
......@@ -35,7 +35,7 @@ class Counter < ActiveRecord::Base
begin
csv = counter_interface.download_counts(self, date)
rescue => e
errors.add(:uncaught_exception, e.inspect)
errors.add(:uncaught_exception, "for #{name} with: #{e.inspect}")
end
errors.merge!(counter_interface.errors)
......@@ -69,7 +69,7 @@ class Counter < ActiveRecord::Base
end
begin
process_counts(date)
process_counts(date) if errors.blank?
rescue => e
errors.add(:process_counts, "Processing failed for #{counter.name}: #{e.message}")
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment