(Finally) overrode Exception::what()\n

This commit is contained in:
jbeder
2009-07-10 04:17:30 +00:00
parent ae89793c28
commit 6752e25bcd
2 changed files with 7 additions and 1 deletions

View File

@@ -15,7 +15,7 @@ int main(int argc, char **argv)
YAML::Node doc;
parser.GetNextDocument(doc);
} catch(const YAML::Exception& e) {
std::cerr << "Error at line " << e.line << ", col " << e.column << ": " << e.msg << "\n";
std::cerr << e.what() << "\n";
}
return 0;
}