majintao0131 / yaml-cpp

Automatically exported from code.google.com/p/yaml-cpp
MIT License
0 stars 0 forks source link

Exception message: "Error at line ..." -> "YAML parse error at ..." #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Any chance the output message of YAML::Exception could be changed something like
suggested in the summary? That way when I see an exception message printed by a
generic "catch (std::exception& e)" line, it'd be obvious when the error comes 
from
parsing something. Of course, that can't give the most informative message 
since the
YAML parser doesn't know the document name, but it's still convenient for small 
pieces
of code.

Thanks. Doesn't look like google code lets me specify when an "issue" is a bug 
or
enhancement..

Original issue reported on code.google.com by diggory....@gmail.com on 18 Aug 2009 at 10:12

GoogleCodeExporter commented 9 years ago
Good idea; I switched it to:

yaml-cpp: error at...

Original comment by jbe...@gmail.com on 19 Aug 2009 at 5:10