From b99db66ce799c715d1ba568cf988e51eca246766 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Thu, 3 Mar 2016 09:37:37 -0800 Subject: [PATCH] Improve log message for handling errors --- src/runtime/parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/parser.c b/src/runtime/parser.c index fa1e0113..21e827ba 100644 --- a/src/runtime/parser.c +++ b/src/runtime/parser.c @@ -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;