Skip to content

Commit

Permalink
Addressed PR Comments
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Bogan <rbogan@amazon.com>
  • Loading branch information
ryanbogan committed Jan 17, 2023
1 parent 61d44d3 commit 5088ce4
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,13 @@ public String executor() {
if (e.getCause() instanceof TimeoutException) {
logger.info("No response from extension to request.");
}
throw Exception.class.cast(e.getCause());
if (e.getCause() instanceof RuntimeException) {
throw (RuntimeException) e.getCause();
} else if (e.getCause() instanceof Error) {
throw (Error) e.getCause();
} else {
throw new RuntimeException(e.getCause());
}
}
return extensionActionResponse;
}
Expand Down

0 comments on commit 5088ce4

Please sign in to comment.