diff --git a/src/main/java/org/jenkinsci/plugins/sonargerrit/SonarToGerritPublisher.java b/src/main/java/org/jenkinsci/plugins/sonargerrit/SonarToGerritPublisher.java index 72a09ef..a0a3837 100644 --- a/src/main/java/org/jenkinsci/plugins/sonargerrit/SonarToGerritPublisher.java +++ b/src/main/java/org/jenkinsci/plugins/sonargerrit/SonarToGerritPublisher.java @@ -140,7 +140,7 @@ public void perform( throw new AbortException("Unable to post review: " + e.getMessage()); } catch (NullPointerException | IllegalArgumentException | IllegalStateException e) { LOGGER.log(Level.SEVERE, e, e::getMessage); - throw new AbortException(e.getMessage()); + throw new IOException(e.getMessage(), e); } }