forked from OpenNeo/impress
add extra error tracking to saving user, too
This commit is contained in:
parent
abb29aae4b
commit
dfea1a1097
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue