mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-20 09:28:27 +08:00
Add SyntaxError.get_message
This commit is contained in:
@@ -35,6 +35,9 @@ class SyntaxError(object):
|
||||
"""The column where the error ends (starting with 0)."""
|
||||
return self._parso_error.end_pos[1]
|
||||
|
||||
def get_message(self):
|
||||
return self._parso_error.message
|
||||
|
||||
def __repr__(self):
|
||||
return '<%s from=%s to=%s>' % (
|
||||
self.__class__.__name__,
|
||||
|
||||
Reference in New Issue
Block a user