Bug: allow `leap test --continue` to run on additional nodes if there was an ssh...
[leap_platform.git] / lib / leap_cli / ssh / backend.rb
index 3894d81..599fc9a 100644 (file)
@@ -178,7 +178,7 @@ module LeapCli
       rescue StandardError => exc
         if exc.is_a?(SSHKit::Command::Failed) || exc.is_a?(SSHKit::Runner::ExecuteError)
           if @options[:raise_error]
-            raise LeapCli::SSH::ExecuteError, exc.to_s
+            raise exc
           elsif @options[:fail_msg]
             @logger.log(@options[:fail_msg], host: @host.hostname, :color => :red)
           else