Skip to content

Commit

Permalink
spotlessApply
Browse files Browse the repository at this point in the history
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
  • Loading branch information
jeromy-cannon committed Sep 22, 2023
1 parent 25ca488 commit 622fd31
Showing 1 changed file with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,10 @@ public <T> T responseAs(final Class<T> responseClass, final Duration timeout) {

LOGGER.debug(
"ResponseAs exiting with exitCode: {}TODO\n\tResponseClass: {}\n\tstandardOutput: {}\n\tstandardError: {}",
exitCode(), responseClass.getName(), standardOutput, standardError);
exitCode(),
responseClass.getName(),
standardOutput,
standardError);

try {
return OBJECT_MAPPER.readValue(standardOutput, responseClass);
Expand Down Expand Up @@ -289,7 +292,10 @@ public <T> List<T> responseAsList(final Class<T> responseClass, final Duration t

LOGGER.debug(
"ResponseAsList exiting with exitCode: {}\n\tResponseClass: {}\n\tstandardOutput: {}\n\tstandardError: {}",
exitCode(), responseClass.getName(), standardOutput, standardError);
exitCode(),
responseClass.getName(),
standardOutput,
standardError);

try {
return OBJECT_MAPPER
Expand Down Expand Up @@ -340,12 +346,16 @@ public void call(final Duration timeout) {

LOGGER.debug(
"Call exiting with exitCode: {}\n\tstandardOutput: {}\n\tstandardError: {}",
exitCode(), standardOutput, standardError);
exitCode(),
standardOutput,
standardError);

if (exitCode() != 0) {
LOGGER.warn(
"Call failed with exitCode: {}\n\tstandardOutput: {}\n\tstandardError: {}",
exitCode(), standardOutput, standardError);
exitCode(),
standardOutput,
standardError);

throw new HelmExecutionException(exitCode(), standardError, standardOutput);
}
Expand Down

0 comments on commit 622fd31

Please sign in to comment.