Skip to content

Commit f85d7d8

Browse files
committed
better msg
1 parent 6af59f5 commit f85d7d8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/java/org/eolang/lints/critical/LtIncorrectAlias.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,8 @@ public Collection<Defect> defects(final Map<String, XML> pkg) {
8484
xmir.xpath("/program/metas/meta[head='alias'][1]/@line").get(0)
8585
),
8686
String.format(
87-
"Incorrect pointing alias \"%s\", since there is no \"%s\"",
88-
pointer,
89-
lookup
87+
"Alias \"%s\" points to \"%s\", but it's not in scope (%d)",
88+
pointer, lookup, pkg.size()
9089
)
9190
)
9291
);

0 commit comments

Comments
 (0)