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

Signed-off-by: Kai Kreuzer <kai@openhab.org>
pull/2180/head
Kai Kreuzer 2021-01-12 10:54:12 +01:00 committed by Christoph Weitkamp
parent 6d03796efb
commit 07c3302a13
No known key found for this signature in database
GPG Key ID: E60BC5062C9F0695
1 changed files with 1 additions and 1 deletions

View File

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