Add other possible socket errors to be rescued on node status service

parent 66e1fe6e
...@@ -17,7 +17,7 @@ module Geo ...@@ -17,7 +17,7 @@ module Geo
else else
["Could not connect to Geo node - HTTP Status Code: #{response.code}"] ["Could not connect to Geo node - HTTP Status Code: #{response.code}"]
end end
rescue HTTParty::Error, Errno::ECONNREFUSED => e rescue HTTParty::Error, Timeout::Error, SocketError, Errno::ECONNRESET, Errno::ECONNREFUSED => e
[e.message] [e.message]
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment