aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch
diff options
context:
space:
mode:
authorDavid Gageot <david@gageot.net>2012-11-05 10:01:22 +0100
committerDavid Gageot <david@gageot.net>2012-11-05 10:01:22 +0100
commit81b76d8b6cbc8cc685c57e42d7a9c5a8dfac2ab6 (patch)
tree5b6a6b001463764c82094123932fef98541ed43d /sonar-batch
parent1eccecabf42f415582426bf1800afd66fb005878 (diff)
downloadsonarqube-81b76d8b6cbc8cc685c57e42d7a9c5a8dfac2ab6.tar.gz
sonarqube-81b76d8b6cbc8cc685c57e42d7a9c5a8dfac2ab6.zip
SONAR-3895 Fix violations
Diffstat (limited to 'sonar-batch')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/local/DryRunDatabase.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/local/DryRunDatabase.java b/sonar-batch/src/main/java/org/sonar/batch/local/DryRunDatabase.java
index 8a5bf928576..c2f69706d58 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/local/DryRunDatabase.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/local/DryRunDatabase.java
@@ -86,9 +86,9 @@ public class DryRunDatabase implements BatchComponent {
} catch (SonarException e) {
Throwable rootCause = Throwables.getRootCause(e);
if (rootCause instanceof FileNotFoundException) {
- throw new SonarException(String.format("Project [%s] doesn't exist on server", projectKey));
+ throw new SonarException(String.format("Project [%s] doesn't exist on server", projectKey), e);
} else if ((rootCause instanceof IOException) && (StringUtils.contains(rootCause.getMessage(), "401"))) {
- throw new SonarException(String.format("You don't have access rights to project [%s]", projectKey));
+ throw new SonarException(String.format("You don't have access rights to project [%s]", projectKey), e);
}
throw e;
}