mirror of
https://github.com/internetee/registry.git
synced 2025-07-30 22:46:22 +02:00
Fixed codeclimate issues
This commit is contained in:
parent
65ae5adbb8
commit
cbe78e505b
3 changed files with 84 additions and 74 deletions
|
@ -9,8 +9,8 @@ module EppRequestable
|
|||
authorize! :create, Epp::Server
|
||||
result = server.request(request_params[:payload])
|
||||
render_success(data: { xml: result.force_encoding('UTF-8') })
|
||||
rescue StandardError
|
||||
handle_non_epp_errors(nil, I18n.t('errors.messages.epp_conn_error'))
|
||||
rescue StandardError => e
|
||||
handle_non_epp_errors(nil, e.message.presence || I18n.t('errors.messages.epp_conn_error'))
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue