Story #104525314 - avoid reporting no errors when error raised

This commit is contained in:
Matt Farnsworth 2015-11-17 17:48:28 +02:00
parent 6140701e47
commit 08114e722b

View file

@ -64,8 +64,12 @@ class Epp::DomainsController < EppController
else
handle_errors(@domain)
end
rescue
handle_errors(@domain)
rescue => e
if @domain.errors.any?
handle_errors(@domain)
else
throw e
end
end
end