Added 'yaml-cpp: ' to the exception messages

This commit is contained in:
Jesse Beder
2009-08-19 05:09:12 +00:00
parent d92ca21bcc
commit ba11f5ae15

View File

@@ -68,7 +68,7 @@ namespace YAML
Exception(const Mark& mark_, const std::string& msg_) Exception(const Mark& mark_, const std::string& msg_)
: mark(mark_), msg(msg_) { : mark(mark_), msg(msg_) {
std::stringstream output; std::stringstream output;
output << "Error at line " << mark.line+1 << ", column " << mark.column+1 << ": " << msg; output << "yaml-cpp: error at line " << mark.line+1 << ", column " << mark.column+1 << ": " << msg;
what_ = output.str(); what_ = output.str();
} }
virtual ~Exception() throw() {} virtual ~Exception() throw() {}