From aa5aea470526e9eeec0b29fe80b40bd703e5bfeb Mon Sep 17 00:00:00 2001 From: Jeromy Cannon Date: Tue, 12 Sep 2023 20:49:18 +0100 Subject: [PATCH] enhanced error message Signed-off-by: Jeromy Cannon --- .../hedera/fullstack/helm/client/execution/HelmExecution.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fullstack-helm-client/src/main/java/com/hedera/fullstack/helm/client/execution/HelmExecution.java b/fullstack-helm-client/src/main/java/com/hedera/fullstack/helm/client/execution/HelmExecution.java index 405896200..c5748bb77 100644 --- a/fullstack-helm-client/src/main/java/com/hedera/fullstack/helm/client/execution/HelmExecution.java +++ b/fullstack-helm-client/src/main/java/com/hedera/fullstack/helm/client/execution/HelmExecution.java @@ -218,7 +218,9 @@ public T responseAs(final Class responseClass, final Duration timeout) { } if (exitCode() != 0) { - throw new HelmExecutionException(exitCode()); + throw new HelmExecutionException(exitCode(), + StreamUtils.streamToString(suppressExceptions(this::standardOutput)), + StreamUtils.streamToString(suppressExceptions(this::standardError))); } final String standardOutput = StreamUtils.streamToString(suppressExceptions(this::standardOutput));