mirror of
https://github.com/internetee/registry.git
synced 2025-06-03 03:07:28 +02:00
Add test for error in business registry
This commit is contained in:
parent
4cc0669286
commit
256d2b7de4
2 changed files with 12 additions and 1 deletions
|
@ -48,7 +48,7 @@ module Api
|
|||
@contacts_pool = Contact.where(id: available_contacts_ids)
|
||||
rescue Soap::Arireg::NotAvailableError => error
|
||||
Rails.logger.fatal("[EXCEPTION] #{error}")
|
||||
render json: { errors: [{ base: ["Business Registry Not Available"] }] },
|
||||
render json: { errors: [{ base: ["Business Registry not available"] }] },
|
||||
status: :service_unavailable and return
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue