Add index to error
This commit is contained in:
@@ -104,7 +104,7 @@ proc `$`*(x: ParserError): string =
|
||||
|
||||
&"""Parsing Error (EndOfString Expected):
|
||||
{original}
|
||||
{errSpace}^ Expected 'EndOfString'"""
|
||||
{errSpace}^ Expected 'EndOfString' at {index} but got {original.len - 1}"""
|
||||
|
||||
else: "ParseError"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user