added error code for ssh exec failure

This commit is contained in:
Adrian Cole 2010-06-07 12:04:24 -07:00
parent 7b204d2f94
commit 3bc448e35c
1 changed files with 1 additions and 1 deletions

View File

@ -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 {