Skip to content

Commit

Permalink
better log for computation error
Browse files Browse the repository at this point in the history
  • Loading branch information
nimakarimipour committed May 21, 2024
1 parent 852bde7 commit 041094d
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,16 @@ public void serializeError(Object source, String messageKey, FoundRequired pair)
} catch (Exception e) {
System.err.println(
"Error in computing required fixes: " + source + " " + messageKey + ", exception:" + e);
System.out.println(
"At path: "
+ Serializer.pathToSourceFileFromURI(
checker
.getVisitor()
.getCurrentPath()
.getCompilationUnit()
.getSourceFile()
.toUri()));
System.out.println("Last visited tree: " + checker.getVisitor().getCurrentPath().getLeaf());
resolvingFixes = ImmutableSet.of();
e.printStackTrace();
}
Expand Down

0 comments on commit 041094d

Please sign in to comment.