diff options
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 |