Also return command line execution result in case of error return code (#2104)

Signed-off-by: Kai Kreuzer <kai@openhab.org>
This commit is contained in:
Kai Kreuzer
2021-01-12 10:54:12 +01:00
committed by GitHub
parent c28090497d
commit a0d58006e8
@@ -115,7 +115,7 @@ public class ExecUtil {
logger.debug("exit code '{}', result '{}', errors '{}'", exitCode, outputFuture.get(),
errorFuture.get());
}
return null;
return errorFuture.get();
}
} catch (ExecutionException e) {
if (logger.isDebugEnabled()) {