diff options
author | John Wiegley <johnw@newartisans.com> | 2003-10-29 07:47:41 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2003-10-29 07:47:41 +0000 |
commit | 8c5b124e9961d3ee64105e1576e79f304c18b40e (patch) | |
tree | fb7055327dedd10466f2fcfc4d8d1fdebcb6f7d2 /ledger.cc | |
parent | 0d29133f8abee4cd24ca2eecce7f82be7534d5a9 (diff) | |
download | fork-ledger-8c5b124e9961d3ee64105e1576e79f304c18b40e.tar.gz fork-ledger-8c5b124e9961d3ee64105e1576e79f304c18b40e.tar.bz2 fork-ledger-8c5b124e9961d3ee64105e1576e79f304c18b40e.zip |
changes
Diffstat (limited to 'ledger.cc')
-rw-r--r-- | ledger.cc | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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); |