Skip to content

Commit

Permalink
Fixed canonical string representation of JSONSyntaxError
Browse files Browse the repository at this point in the history
  • Loading branch information
Wannes Boeykens committed Feb 28, 2025
1 parent 752a0e1 commit 58d3959
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jsonyx 2.0.0 (unreleased)
- Added :func:`jsonyx.Manipulator`
- Changed error for big integers to :exc:`jsonyx.JSONSyntaxError`
- Changed error for deep nesting to :exc:`jsonyx.JSONSyntaxError`
- Fixed canonical string representation of :exc:`jsonyx.JSONSyntaxError`
- Fixed line comment detection
- Fixed spelling of "commas" in error messages
- Fixed ``end_offset`` of :exc:`jsonyx.JSONSyntaxError`
Expand Down
1 change: 1 addition & 0 deletions src/jsonyx/_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ def __init__(

self.colno: int = colno
self.end_colno: int = end_colno
self.args = (msg, filename, doc, start, end)

def __str__(self) -> str:
"""Convert to string."""
Expand Down

0 comments on commit 58d3959

Please sign in to comment.