Add index to error

This commit is contained in:
Florian Schroedl
2022-01-20 17:00:00 +01:00
parent 3dac05efdd
commit 6ca3f4a9ba

View File

@@ -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"