matchcompiler.py: Show pattern that caused the InternalError

This commit is contained in:
PKEuS 2014-06-30 13:32:20 +02:00
parent 6b5f34df4b
commit 78f0a47170
1 changed files with 1 additions and 1 deletions

View File

@ -324,7 +324,7 @@ class MatchCompiler:
# ret += ' std::cout << "tok: " << tok->str();\n'
# ret += ' if (tok->next())\n'
# ret += ' std::cout << "tok next: " << tok->next()->str();\n'
ret += ' throw InternalError(tok, "Internal error. compiled match returned different result than parsed match");\n'
ret += ' throw InternalError(tok, "Internal error. compiled match returned different result than parsed match: " + std::string("' + pattern + '"));\n'
ret += ' }\n'
ret += ' return res_compiled_match;\n'
ret += '}\n'