diff options
author | John Wiegley <johnw@newartisans.com> | 2004-08-07 21:46:05 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-08-07 21:46:05 -0400 |
commit | 38e9c6c76c486b95c1e29f61bdb4597ce3c544fd (patch) | |
tree | cc7b231605cab267ac10a2503776c9c3733d186a /error.cc | |
parent | c6c0179545b4572b7abf46957abd453022f9e213 (diff) | |
download | fork-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.cc | 12 |
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 |