aboutsummaryrefslogtreecommitdiff
path: root/interpreter.py
diff options
context:
space:
mode:
Diffstat (limited to 'interpreter.py')
-rwxr-xr-xinterpreter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/interpreter.py b/interpreter.py
index 497498f..6b229b8 100755
--- a/interpreter.py
+++ b/interpreter.py
@@ -258,7 +258,7 @@ class Interpreter():
if node is None:
return
if not isinstance(node, nodes.CodeBlock):
- raise InvalidCode('Tried to execute a non-codeblock. Possibly a bug in the parser.')
+ raise InvalidCode('Line %d: Tried to execute a non-codeblock. Possibly a bug in the parser.' % node.lineno())
statements = node.get_statements()
i = 0
while i < len(statements):