aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2015-04-09 17:33:57 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2015-04-09 17:33:57 +0200
commit183b78861f7b48113686e19765b2d13d31b5cd64 (patch)
treebed1e68ce78a625cddf25b94f07e90bc8cd7e2fe /sonar-batch
parent7155123011053abae8646c6b8ac79bbe19d1355c (diff)
downloadsonarqube-183b78861f7b48113686e19765b2d13d31b5cd64.tar.gz
sonarqube-183b78861f7b48113686e19765b2d13d31b5cd64.zip
Fix quality flaws
Diffstat (limited to 'sonar-batch')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/index/SourceDataFactory.java2
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/mediumtest/TaskResult.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/index/SourceDataFactory.java b/sonar-batch/src/main/java/org/sonar/batch/index/SourceDataFactory.java
index 8a1447acdee..978dbdb9643 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/index/SourceDataFactory.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/index/SourceDataFactory.java
@@ -225,7 +225,7 @@ public class SourceDataFactory implements BatchComponent {
}
} catch (Exception e) {
- throw new IllegalStateException("Can't read syntax highlighting for " + inputFile.absolutePath());
+ throw new IllegalStateException("Can't read syntax highlighting for " + inputFile.absolutePath(), e);
} finally {
IOUtils.closeQuietly(inputStream);
}
diff --git a/sonar-batch/src/main/java/org/sonar/batch/mediumtest/TaskResult.java b/sonar-batch/src/main/java/org/sonar/batch/mediumtest/TaskResult.java
index 6dff11809b9..4a523b252e1 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/mediumtest/TaskResult.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/mediumtest/TaskResult.java
@@ -217,7 +217,7 @@ public class TaskResult implements org.sonar.batch.mediumtest.ScanTaskObserver {
}
} catch (Exception e) {
- throw new IllegalStateException("Can't read syntax highlighting for " + file.absolutePath());
+ throw new IllegalStateException("Can't read syntax highlighting for " + file.absolutePath(), e);
} finally {
IOUtils.closeQuietly(inputStream);
}