Skip to content

Commit

Permalink
Update errors.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Vardan2009 committed Jun 1, 2024
1 parent e11c826 commit 1d3666b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def string_with_arrows(text: str, pos_start: Position, pos_end: Position) -> str

# Append to result
line_text = f"{line[:col_start_color]}{Log.deep_error(line[col_start_color:col_end_color], bold=True)}{line[col_end_color:]}\n"
lstripped_len = len(line_text) - len(line_text.lstrip()) - 1
lstripped_len = len(line_text) - len(line_text.lstrip())
result += line_text.lstrip()
result += " " * (col_start - lstripped_len) + Log.deep_error("^" * (col_end - col_start), bold=True)

Expand Down

0 comments on commit 1d3666b

Please sign in to comment.