Commit bacb2df3 authored by dbarbera's avatar dbarbera
Browse files

Show input string in error/warning messages

parent 6ff768bb
......@@ -289,12 +289,12 @@ def get_input_string(root):
def error(root, msg):
''' Return an error message '''
return '{} - line {}'.format(msg, root.getLine())
return '{} - "{}"'.format(msg, get_input_string(root))
def warning(root, msg):
''' Return a warning message '''
return '{} - line {}'.format(msg, root.getLine())
return '{} - "{}"'.format(msg, get_input_string(root))
def tmp():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment