summaryrefslogtreecommitdiff
path: root/ledger.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ledger.cc')
-rw-r--r--ledger.cc6
1 files changed, 4 insertions, 2 deletions
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);