Skip to content

Commit

Permalink
Fixed some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Genarito committed Nov 24, 2021
1 parent fff24a1 commit 31c53d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gura/Parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


class GuraError(Exception):
"""General Gura error, with position and line"""
"""General Gura error, with position, line and a custom message"""
def __init__(self, pos: int, line: int, msg: str, *args):
self.pos = pos
self.line = line
Expand Down
2 changes: 1 addition & 1 deletion tests/exception_report/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def test_line_and_pos_1(self):
self.__test_fail('parsing_error_1.ura', ParseError, error_pos=0, error_line=1)

def test_line_and_pos_2(self):
"""Tests error position and line at end"""
"""Tests error position and line at the end of file"""
self.__test_fail('parsing_error_2.ura', ParseError, error_pos=10, error_line=1)

def test_line_and_pos_3(self):
Expand Down

0 comments on commit 31c53d8

Please sign in to comment.