From 8c5b124e9961d3ee64105e1576e79f304c18b40e Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 29 Oct 2003 07:47:41 +0000 Subject: changes --- ledger.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ledger.cc') diff --git a/ledger.cc b/ledger.cc index 37623f5c..8a1a61ce 100644 --- a/ledger.cc +++ b/ledger.cc @@ -6,6 +6,8 @@ namespace ledger { book * main_ledger; +extern int linenum; + commodity::~commodity() { if (price) @@ -197,7 +199,7 @@ bool entry::finalize(bool do_compute) if (! empty_allowed || balance.amounts.empty() || balance.amounts.size() != 1) { - std::cerr << "Error, line " //<< linenum + std::cerr << "Error, line " << linenum << ": Transaction entry is lacking an amount." << std::endl; return false; @@ -271,7 +273,7 @@ bool entry::finalize(bool do_compute) // right (i.e., zero for every commodity). if (! validate()) { - std::cerr << "Error, line " //<< (linenum - 1) + std::cerr << "Error, line " << (linenum - 1) << ": Failed to balance the following transaction:" << std::endl; validate(true); -- cgit v1.2.3