X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/20d884ddac6b8cacedb2701e282efe3ff9785cbf..34d407f7df45b5faaa25a92a04e8582f95162f31:/stglibs/srvconf.lib/parsers/get_admin.cpp?ds=inline diff --git a/stglibs/srvconf.lib/parsers/get_admin.cpp b/stglibs/srvconf.lib/parsers/get_admin.cpp index 809280b7..3d0e135e 100644 --- a/stglibs/srvconf.lib/parsers/get_admin.cpp +++ b/stglibs/srvconf.lib/parsers/get_admin.cpp @@ -45,9 +45,10 @@ return true; } // 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) { @@ -106,7 +107,7 @@ if (strcasecmp(el, "admin") == 0) 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; } }