Skip to content

Commit

Permalink
Merge pull request #43237 from holly-cummins/pretty-stack-trace-arrow
Browse files Browse the repository at this point in the history
Use prettier arrow in stack traces (to highlight the line with the error)
  • Loading branch information
gastaldi authored Sep 12, 2024
2 parents 0d5112c + 718e182 commit 45a9d46
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ private static List<String> getRelatedLinesInSource(Path filePath, int lineNumbe
if (currentLine >= lineNumber - contextRange) {
String ln = String.valueOf(currentLine);
if (currentLine == lineNumber) {
ln = "-> " + ln + " ";
ln = " " + ln + " ";
} else {
ln = " " + ln + " ";
ln = " " + ln + " ";
}

contextQueue.add("\t" + ln + line);
Expand Down

0 comments on commit 45a9d46

Please sign in to comment.