jsch error stream wasn't being extracted into a string

This commit is contained in:
Adrian Cole 2011-07-23 17:50:35 +10:00
parent c9e63f98ab
commit 76abbe8906
1 changed files with 1 additions and 1 deletions

View File

@ -417,7 +417,7 @@ public class JschSshClient implements SshClient {
executor = acquire(execConnection(command)); executor = acquire(execConnection(command));
try { try {
String outputString = Strings2.toStringAndClose(executor.getInputStream()); String outputString = Strings2.toStringAndClose(executor.getInputStream());
String errorString = executor.getErrStream().toString(); String errorString = Strings2.toStringAndClose(executor.getErrStream());
int errorStatus = executor.getExitStatus(); int errorStatus = executor.getExitStatus();
int i = 0; int i = 0;
String message = String.format("bad status -1 %s", toString()); String message = String.format("bad status -1 %s", toString());