diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2011-01-21 17:53:43 +0100 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2011-01-21 17:53:43 +0100 |
commit | 0ad781a4d3dfbd984259c1f276f276685872fd2a (patch) | |
tree | b4785cbc159ec7b72aab82976466dddda401c79b | |
parent | f7f98a13247734bd70b3f36f8bedc8762519f437 (diff) | |
download | sonarqube-0ad781a4d3dfbd984259c1f276f276685872fd2a.tar.gz sonarqube-0ad781a4d3dfbd984259c1f276f276685872fd2a.zip |
improve exception when saving a measure twice on the same resource
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/index/Bucket.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/index/Bucket.java b/sonar-batch/src/main/java/org/sonar/batch/index/Bucket.java index 5a19f6ba97d..72010ede518 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/index/Bucket.java +++ b/sonar-batch/src/main/java/org/sonar/batch/index/Bucket.java @@ -98,7 +98,7 @@ public final class Bucket { if (metricMeasures.get(index) == measure) { add = false; } else { - throw new SonarException("Can not add twice the same measure: " + measure); + throw new SonarException("Can not add twice the same measure on " + resource + ": " + measure); } } } |