Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,12 @@ public RetryAction shouldRetry(Exception e, int retries, int failovers, boolean
return retriableTask.call();
} catch (Exception ex) {
if (containsAccessControlException(ex)) {
throw new AccessControlException();
Throwable cause = ex;
while (cause != null && !(cause instanceof AccessControlException)) {
cause = cause.getCause();
}
throw new IOException(
cause != null ? cause.getMessage() : ex.getMessage(), ex);
}
throw new SCMSecurityException("Unable to obtain complete CA list", ex);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ private SCMNodeInfo findLeaderNode(ScmClient scmClient) throws IOException {

return null;
} catch (IOException e) {
throw new IOException("Could not determine leader node", e);
throw new IOException("Could not determine leader node. " + e.getMessage(), e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ private void printDetails(ScmClient scmClient, long containerID) throws IOExcept
container = scmClient.getContainerWithPipeline(containerID);
Objects.requireNonNull(container, "Container cannot be null");
} catch (IOException e) {
printError("Unable to retrieve the container details for " + containerID);
printError("Unable to retrieve the container details for " + containerID + ". " + e.getMessage());
return;
}

Expand Down