Don't complain if no errors occurred due to cancellation

Fixes #1166
This commit is contained in:
ridiculousfish 2014-10-06 00:47:41 -07:00
parent f85ec782a0
commit 649c3f262d

View file

@ -731,7 +731,7 @@ parse_execution_result_t parse_execution_context_t::report_error(const parse_nod
parse_execution_result_t parse_execution_context_t::report_errors(const parse_error_list_t &error_list) const
{
if (parser->show_errors)
if (parser->show_errors && ! parser->cancellation_requested)
{
if (error_list.empty())
{