summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorazul <azul@riseup.net>2017-03-20 07:44:00 +0000
committerazul <azul@riseup.net>2017-03-20 07:44:00 +0000
commitb9d64784165d6fa0af305a7403ff70f5ca4f398b (patch)
treee9ddf429f5cca75f14823c53236944eeec262847 /app
parent1a69dc86077e5bbde4b6a8f181e5711384c1f253 (diff)
parentfddc0dab59ffc349f1d7b16b595f2f5668624525 (diff)
Merge branch 'debug/rescue-more-specifically' into 'master'
make the rescue in account creation less broad See merge request !15
Diffstat (limited to 'app')
-rw-r--r--app/models/account.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/account.rb b/app/models/account.rb
index 0731cac..3283bcc 100644
--- a/app/models/account.rb
+++ b/app/models/account.rb
@@ -47,7 +47,7 @@ class Account
user_invite_code.save
end
end
- rescue StandardError => ex
+ rescue VALIDATION_FAILED => ex
user.errors.add(:base, ex.to_s) if user
ensure
if creation_problem?(user, identity)