implements PR-06.1

This commit is contained in:
2026-03-24 13:42:31 +00:00
parent 7ccdd7b7e2
commit 0ec5693b0d
7 changed files with 195 additions and 11 deletions
@@ -12,6 +12,9 @@ public class BuildingIssue {
private final Throwable exception;
private final String phase;
private final String code;
private final Integer fileId;
private final Integer start;
private final Integer end;
private final Integer functionIndex;
private final Integer pc;
@@ -37,6 +40,14 @@ public class BuildingIssue {
sb.append('(').append(code).append(')').append(' ');
}
sb.append(message == null ? "" : message);
if (fileId != null && fileId >= 0) {
final var safeStart = start == null ? -1 : start;
final var safeEnd = end == null ? -1 : end;
sb.append(" [file=").append(fileId)
.append(':').append(safeStart)
.append('-').append(safeEnd)
.append(']');
}
if (functionIndex != null && functionIndex >= 0) {
sb.append(" [fn=").append(functionIndex).append(']');
}