From 3bc448e35c25378a473630702024196cbf715a22 Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Mon, 7 Jun 2010 12:04:24 -0700 Subject: [PATCH] added error code for ssh exec failure --- .../jsch/src/main/java/org/jclouds/ssh/jsch/JschSshClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/ssh/jsch/src/main/java/org/jclouds/ssh/jsch/JschSshClient.java b/extensions/ssh/jsch/src/main/java/org/jclouds/ssh/jsch/JschSshClient.java index 8f2e182fee..9122d26f80 100644 --- a/extensions/ssh/jsch/src/main/java/org/jclouds/ssh/jsch/JschSshClient.java +++ b/extensions/ssh/jsch/src/main/java/org/jclouds/ssh/jsch/JschSshClient.java @@ -279,7 +279,7 @@ public class JschSshClient implements SshClient { return new ExecResponse(Utils.toStringAndClose(executor.getInputStream()), error .toString(), executor.getExitStatus()); } catch (Exception e) { - throw new SshException(String.format("%s@%s:%d: Error executing command: ", username, + throw new SshException(String.format("%s@%s:%d: Error executing command: %s", username, host, port, command), e); } } finally {