mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 02:39:37 +02:00
Story #104525314 - avoid reporting no errors when error raised
This commit is contained in:
parent
9cf287b35c
commit
afbddad42f
1 changed files with 6 additions and 2 deletions
|
@ -68,8 +68,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