summaryrefslogtreecommitdiff
path: root/error.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-07 21:46:05 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-07 21:46:05 -0400
commit38e9c6c76c486b95c1e29f61bdb4597ce3c544fd (patch)
treecc7b231605cab267ac10a2503776c9c3733d186a /error.cc
parentc6c0179545b4572b7abf46957abd453022f9e213 (diff)
downloadfork-ledger-38e9c6c76c486b95c1e29f61bdb4597ce3c544fd.tar.gz
fork-ledger-38e9c6c76c486b95c1e29f61bdb4597ce3c544fd.tar.bz2
fork-ledger-38e9c6c76c486b95c1e29f61bdb4597ce3c544fd.zip
print is working again
Diffstat (limited to 'error.cc')
-rw-r--r--error.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/error.cc b/error.cc
new file mode 100644
index 00000000..13955c66
--- /dev/null
+++ b/error.cc
@@ -0,0 +1,12 @@
+#include "error.h"
+
+namespace ledger {
+
+const char* parse_error::what() const throw()
+{
+ std::ostringstream msg;
+ msg << file << ", line " << line << ": " << error::what();
+ return msg.str().c_str();
+}
+
+} // namespace ledger