From 909827437d9cefcd89acd7ab3d5404833eed4239 Mon Sep 17 00:00:00 2001 From: Kostiantyn Kostiuk Date: Wed, 3 Jun 2026 11:41:21 +0300 Subject: [PATCH] Catch EHOSTUNREACH as expected Signed-off-by: Kostiantyn Kostiuk --- lib/rtoolsHCK.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/rtoolsHCK.rb b/lib/rtoolsHCK.rb index fbe5b07..c118f92 100755 --- a/lib/rtoolsHCK.rb +++ b/lib/rtoolsHCK.rb @@ -414,8 +414,9 @@ def handle_action_exceptions(action, &block) yield # We can have ECONNREFUSED error due to direct connection to # clients instead of proxy through studio + # We can have EHOSTUNREACH error due to network issues or machine rebooting # Safety catch this exception, the action wrapper will retry if needed - rescue RToolsHCKError, Errno::ECONNREFUSED => e + rescue RToolsHCKError, Errno::ECONNREFUSED, Errno::EHOSTUNREACH => e action_exception_handler(e) end end