Skip to content

Commit

Permalink
fix #3818: adding missing throws to launderThrowable
Browse files Browse the repository at this point in the history
(cherry picked from commit f792c92)
Signed-off-by: Marc Nuri <marc@marcnuri.com>
  • Loading branch information
shawkins authored and manusa committed Apr 5, 2022
1 parent 0000577 commit 73da487
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ private InputStream readFile(String source) {
out.flush();
out.close();
} catch (IOException e) {
KubernetesClientException.launderThrowable(e);
throw KubernetesClientException.launderThrowable(e);
}
}
).exec("sh", "-c", String.format("cat %s | base64", shellQuote(source)));
Expand Down Expand Up @@ -484,7 +484,7 @@ public InputStream readTar(String source) {
out.flush();
out.close();
} catch (IOException e) {
KubernetesClientException.launderThrowable(e);
throw KubernetesClientException.launderThrowable(e);
}
}
).exec("sh", "-c", "tar -cf - " + source + "|" + "base64");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public static void applyCommonConfiguration(Config config, HttpClient.Builder bu
}

} catch (Exception e) {
KubernetesClientException.launderThrowable(e);
throw KubernetesClientException.launderThrowable(e);
}
HttpClientUtils.createApplicableInterceptors(config, factory).forEach(builder::addOrReplaceInterceptor);
}
Expand Down

0 comments on commit 73da487

Please sign in to comment.