mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 18:59:38 +02:00
Story #104525314 - avoid reporting no errors when error raised
This commit is contained in:
parent
6140701e47
commit
08114e722b
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue