Skip to content

Commit

Permalink
fix fabric8io#3818: adding missing throws to launderThrowable
Browse files Browse the repository at this point in the history
  • Loading branch information
shawkins committed Feb 10, 2022
1 parent 677884c commit 146cb94
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
### 6.0-SNAPSHOT

#### Bugs
* Fix #3818: adding missing throws to launderThrowable

#### Improvements
* Fix #3811: Reintroduce `Replaceable` interface in `NonNamespaceOperation`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,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
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

0 comments on commit 146cb94

Please sign in to comment.