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 041094d commit bc7a40c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ 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(
System.err.println(
"At path: "
+ Serializer.pathToSourceFileFromURI(
checker
Expand All @@ -129,7 +129,7 @@ public void serializeError(Object source, String messageKey, FoundRequired pair)
.getCompilationUnit()
.getSourceFile()
.toUri()));
System.out.println("Last visited tree: " + checker.getVisitor().getCurrentPath().getLeaf());
System.err.println("Last visited tree: " + checker.getVisitor().getCurrentPath().getLeaf());
resolvingFixes = ImmutableSet.of();
e.printStackTrace();
}
Expand Down

0 comments on commit bc7a40c

Please sign in to comment.