summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2006-03-08 22:13:37 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:29 -0400
commitf1d5716b95e770b53a43a5794782a34c78f0ae9f (patch)
treec9fb1f37e442543fd6e111d4e2fe20244cacd64d
parentbdd0dcf39d4796b171cd09575d951fca4414857b (diff)
downloadfork-ledger-f1d5716b95e770b53a43a5794782a34c78f0ae9f.tar.gz
fork-ledger-f1d5716b95e770b53a43a5794782a34c78f0ae9f.tar.bz2
fork-ledger-f1d5716b95e770b53a43a5794782a34c78f0ae9f.zip
*** empty log message ***
-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;