Story#105846070 - save error to json obj

This commit is contained in:
Vladimir Krylov 2016-01-25 14:55:39 +02:00
parent 9bc34ed9ef
commit a6fdb5289a

View file

@ -45,7 +45,7 @@ class Registrant::DomainsController < RegistrantController
BusinessRegistryCache.fetch_associated_domains ident, ident_cc BusinessRegistryCache.fetch_associated_domains ident, ident_cc
rescue Soap::Arireg::NotAvailableError => error rescue Soap::Arireg::NotAvailableError => error
flash[:notice] = I18n.t(error.json[:message]) flash[:notice] = I18n.t(error.json[:message])
Rails.error.fatal("[EXCEPTION] #{error.to_s}") Rails.logger.error.fatal("[EXCEPTION] #{error.to_s}")
current_user.domains current_user.domains
end end
end end