From f94ab1a05cf5cc1300a628f467ce24e0cc1f2d88 Mon Sep 17 00:00:00 2001 From: Tom Herman Date: Wed, 28 Dec 2022 11:22:55 +0200 Subject: [PATCH] add "} or {" note for parsing error message --- src/fj_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fj_parser.py b/src/fj_parser.py index 0904bc6..d2e90f8 100644 --- a/src/fj_parser.py +++ b/src/fj_parser.py @@ -308,7 +308,7 @@ def error(self, token: Token) -> None: error_occurred = True print() if token is None: - print(f'Syntax Error in {get_position(self.line_position(None))}, unknown token') + print(f'Syntax Error in {get_position(self.line_position(None))}. Maybe missing }} or {{ before this line?') else: print(f'Syntax Error in {get_position(token.lineno)}, token=("{token.type}", {token.value})')