add extra error tracking to saving user, too

This commit is contained in:
Emi Matchu 2011-02-23 16:01:43 -05:00
parent abb29aae4b
commit dfea1a1097

View file

@ -30,7 +30,11 @@ class User < ActiveRecord::Base
raise ActiveRecord::RecordNotSaved, "#{e.message}, #{contribution.inspect}, #{contribution.valid?.inspect}, #{contribution.errors.inspect}" raise ActiveRecord::RecordNotSaved, "#{e.message}, #{contribution.inspect}, #{contribution.valid?.inspect}, #{contribution.errors.inspect}"
end end
end end
begin
save! save!
rescue ActiveRecord::RecordNotSaved => e
raise ActiveRecord::RecordNotSaved, "#{e.message}, #{self.inspect}, #{self.valid?.inspect}, #{self.errors.inspect}"
end
end end
new_points new_points
end end