Skip to content

Commit

Permalink
Merge branch 'Guardsquare:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
zlataovce authored Sep 16, 2024
2 parents 413fcd1 + db60200 commit 852c8ce
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public void printException(
.append("\n");
}
// print the erroneous instruction
int offset = offsetBuffer.peek();
String offset = String.valueOf(offsetBuffer.peek());
messageBuilder
.append(ANSI_CYAN)
.append(offset)
Expand All @@ -123,10 +123,11 @@ public void printException(
.append("\n");

String indicators = new String(new char[errorInstructionString.length()]).replace('\0', '^');
String margin = new String(new char[offset.length()]).replace('\0', ' ');
messageBuilder
.append(" ")
.append(margin)
.append(ANSI_CYAN)
.append("|")
.append(" |")
.append(ANSI_RESET)
.append(" ")
.append(ANSI_RED)
Expand Down

0 comments on commit 852c8ce

Please sign in to comment.