lucastheisen / jsch-nio

Java nio FileSystem implementation over SSH

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change execute method of UnixSshFileSystemProvider to return stdout and throw new CommandFailedException extending from IOException with the status code and stderr if non-zero exit.

lucastheisen opened this issue · comments

Some uses need to throw a specialized exception, so i added a second execute executeForStdout that throws UnixSshCommandFailedException on non-zero that works for most cases.