} // namespace STG
-GET_ADMIN::PARSER::PARSER(CALLBACK f, void * d)
+GET_ADMIN::PARSER::PARSER(CALLBACK f, void * d, const std::string & e)
: callback(f),
data(d),
+ encoding(e),
depth(0),
parsingAnswer(false)
{
for (const char ** pos = attr; *pos != NULL; pos = pos + 2)
if (!TryParse(propertyParsers, ToLower(*pos), pos, *pos))
{
- error = "Invalid parameter.";
+ error = std::string("Invalid parameter '") + *pos + "'.";
break;
}
}