]> source.dussan.org Git - sonarqube.git/commitdiff
Improve exception message
authorMartin Strecker <103252490+martin-strecker-sonarsource@users.noreply.github.com>
Mon, 27 Nov 2023 11:01:06 +0000 (12:01 +0100)
committerGitHub <noreply@github.com>
Mon, 27 Nov 2023 11:01:06 +0000 (12:01 +0100)
sonar-plugin-api-impl/src/main/java/org/sonar/api/batch/sensor/symbol/internal/DefaultSymbolTable.java

index 4db7a419b02c0c34b7486a02681250769ff668eb..c8672d452b5b7b9251297ed36984e0e22ce3410a 100644 (file)
@@ -107,7 +107,7 @@ public class DefaultSymbolTable extends DefaultStorable implements NewSymbolTabl
     @Override
     public NewSymbol newReference(TextRange range) {
       requireNonNull(range, "Provided range is null");
-      checkArgument(!declaration.overlap(range), "Overlapping symbol declaration and reference for symbol at %s", declaration);
+      checkArgument(!declaration.overlap(range), "Overlapping symbol declaration and reference for symbol declared at %s and referenced at %s in file %s", declaration, range, inputFile);
       references.add(range);
       return this;
     }