Improve log message for handling errors

This commit is contained in:
Max Brunsfeld 2016-03-03 09:37:37 -08:00
parent aef7582a2a
commit b99db66ce7

View file

@ -792,7 +792,7 @@ static ParseActionResult ts_parser__consume_lookahead(TSParser *self, int head,
}
if (ts_stack_head_count(self->stack) == 1) {
LOG_ACTION("error_sym");
LOG_ACTION("handle_error %s", SYM_NAME(lookahead->symbol));
switch (ts_parser__handle_error(self, current_head, lookahead)) {
case FailedToUpdateStackHead:
return FailedToUpdateStackHead;