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
Lucas Theisen commented
Lucas Theisen commented
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.