summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--textual.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/textual.cc b/textual.cc
index 35489a79..cd0b9b28 100644
--- a/textual.cc
+++ b/textual.cc
@@ -822,7 +822,7 @@ unsigned int textual_parser_t::parse(std::istream& in,
err->context.push_front(new file_context(path, linenum - 1));
std::cout.flush();
- if (errors > 0)
+ if (errors > 0 && err->context.size() > 1)
std::cerr << std::endl;
err->reveal_context(std::cerr, "Error");
std::cerr << err->what() << std::endl;