diff --git a/app/models/contact/company_register.rb b/app/models/contact/company_register.rb index c27ba3e3d..42b731fca 100644 --- a/app/models/contact/company_register.rb +++ b/app/models/contact/company_register.rb @@ -21,9 +21,14 @@ def return_company_status end def return_company_data + Rails.logger.info "inside return_company_data" + Rails.logger.info "ident: #{ident}" + Rails.logger.info "org?: #{org?}" return unless org? - company_register.simple_data(registration_number: ident.to_s) + res = company_register.simple_data(registration_number: ident.to_s) + Rails.logger.info "res: #{res.inspect}" + res rescue CompanyRegister::NotAvailableError Rails.logger.info "ERROR HAPPENED: CompanyRegister::NotAvailableError" []