From 1c4874978e8fd2c2a4fecbd1855bcd0b790100f1 Mon Sep 17 00:00:00 2001 From: Kostiantyn Kostiuk Date: Fri, 6 Feb 2026 19:31:02 +0200 Subject: [PATCH] Capture server exception as an action exception This allows to reptry command when the server exited unexpectedly. For example, in case the WinRM connection is broken. Signed-off-by: Kostiantyn Kostiuk --- lib/rtoolsHCK.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rtoolsHCK.rb b/lib/rtoolsHCK.rb index e3fa91c..3db6623 100755 --- a/lib/rtoolsHCK.rb +++ b/lib/rtoolsHCK.rb @@ -388,7 +388,7 @@ def handle_action_exceptions(action, &block) log_action_call(action, block.binding) handle_exceptions do yield - rescue RToolsHCKActionError => e + rescue RToolsHCKError => e action_exception_handler(e) end end