change error() and add error_full()

This commit is contained in:
Hideyuki Tanaka 2009-10-23 14:58:36 +09:00
parent d0aff643b8
commit a27c759a73

View File

@ -309,6 +309,10 @@ public:
}
std::string error() const{
return errors.size()>0?errors[0]:"";
}
std::string error_full() const{
std::ostringstream oss;
for (size_t i=0; i<errors.size(); i++)
oss<<errors[i]<<std::endl;