lib/app42/client/app42_rest_client.rb in app42-0.5.8 vs lib/app42/client/app42_rest_client.rb in app42-0.5.9
- old
+ new
@@ -369,11 +369,13 @@
:timeStamp => params['timeStamp'],
:signature => signature
)
rescue Errno::ECONNREFUSED => e
@exception_msg = "#{Message::COULD_NOT_CONNECT}"
+ rescue Errno::ENOENT => e
+ @exception_msg = "#{e.message}"
rescue SystemCallError, SocketError => e
- @exception_msg = "#{Message::NW_CONNECTION_ERROR}"
+ @exception_msg = "#{Message::NW_CONNECTION_ERROR}"
rescue RestClient::RequestTimeout => e
@exception_msg = "#{Message::TIME_OUT_ERROR}"
rescue => e
if e.response.code != 200
begin
\ No newline at end of file