diff options
Diffstat (limited to 'src/textual.cc')
-rw-r--r-- | src/textual.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/textual.cc b/src/textual.cc index b701233f..1be5d4d8 100644 --- a/src/textual.cc +++ b/src/textual.cc @@ -190,6 +190,8 @@ void textual_parser_t::instance_t::parse() beg_line = linenum; } catch (const std::exception& err) { + string current_context = error_context(); + if (parent) { std::list<instance_t *> instances; @@ -206,7 +208,9 @@ void textual_parser_t::instance_t::parse() add_error_context("While parsing file " << file_context(pathname, linenum - 1)); - report_error(err); + std::cerr << error_context() << std::endl + << current_context << std::endl + << "Error: " << err.what() << std::endl; errors++; } } |