summaryrefslogtreecommitdiff
path: root/src/error.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-10 08:16:26 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-10 08:16:26 -0400
commit7be17fd779db1ee2a20064bdf3b4a8f5da3eb968 (patch)
tree4408ceac022ed5370f2eb4b57408bbc7050697c4 /src/error.cc
parent5aa1f8b6249a4d6d933b9ce1b2c79011439a04c6 (diff)
downloadfork-ledger-7be17fd779db1ee2a20064bdf3b4a8f5da3eb968.tar.gz
fork-ledger-7be17fd779db1ee2a20064bdf3b4a8f5da3eb968.tar.bz2
fork-ledger-7be17fd779db1ee2a20064bdf3b4a8f5da3eb968.zip
Corrections to the way error strings are generated
Diffstat (limited to 'src/error.cc')
-rw-r--r--src/error.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/error.cc b/src/error.cc
index cfc91ff1..4b3a7786 100644
--- a/src/error.cc
+++ b/src/error.cc
@@ -43,6 +43,7 @@ std::ostringstream _desc_buffer;
string error_context()
{
string context = _ctxt_buffer.str();
+ _ctxt_buffer.clear();
_ctxt_buffer.str("");
return context;
}