Skip to content

Commit

Permalink
Fix for the following issue:
Browse files Browse the repository at this point in the history
A catch statement should never catch throwable since it includes errors.
  • Loading branch information
davejohnston committed Jun 26, 2024
1 parent f9ebacf commit dcd09dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public String authenticate() throws ConnectorException {
log.error("Failed to get auth token", apiException);
throw new ConnectorException(
apiException.getMessage(), apiException.getCode(), apiException.getMessage());
} catch (Throwable ex) {
} catch (Exception ex) {
log.error("Unexpected exception", ex);
throw ex;
} finally {
Expand Down

0 comments on commit dcd09dc

Please sign in to comment.