Skip to content

Commit

Permalink
refactor(JDTCommentBuilder): improve error message with position of o…
Browse files Browse the repository at this point in the history
…ffending comment (#2908)
  • Loading branch information
nharrand authored and monperrus committed Mar 9, 2019
1 parent d8bd8e4 commit ab4cf00
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,8 @@ public <A extends Annotation> void visitCtAnnotation(CtAnnotation<A> e) {
if (!comment.isParentInitialized()) {
// that's a serious error, there is something to debug
LOGGER.error("\"" + comment + "\" cannot be added into the AST, with parent " + commentParent.getClass()
+ "please report the bug by posting on https://github.com/INRIA/spoon/issues/2482");
+ " at " + commentParent.getPosition().toString()
+ ", please report the bug by posting on https://github.com/INRIA/spoon/issues/2482");
}
}

Expand Down

0 comments on commit ab4cf00

Please sign in to comment.