in github-plugin/src/main/java/com/googlesource/gerrit/plugins/github/git/AbstractCloneJob.java [27:43]
protected String getErrorDescription(Throwable exception) {
LOG.error("Job " + this + " FAILED", exception);
if (exception instanceof ProtectedBranchFoundException) {
return exception.getMessage();
}
if (GitException.class.isAssignableFrom(exception.getClass())) {
return ((GitException) exception).getErrorDescription();
} else if (ProvisionException.class.isAssignableFrom(exception.getClass())) {
Throwable cause = exception.getCause();
if (cause != null) {
return getErrorDescription(cause);
}
return "Import startup failed";
} else {
return "Internal error";
}
}