summaryrefslogtreecommitdiff
path: root/error.cc
blob: 13955c66d6a74d04dad52c1c4c1de1ef10bffffb (plain)
1
2
3
4
5
6
7
8
9
10
11
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