X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/20d884ddac6b8cacedb2701e282efe3ff9785cbf..85513928f6a270af94c1477f5ae2773647b04cd7:/stglibs/srvconf.lib/parsers/get_tariff.cpp diff --git a/stglibs/srvconf.lib/parsers/get_tariff.cpp b/stglibs/srvconf.lib/parsers/get_tariff.cpp index eb94441e..9ab61638 100644 --- a/stglibs/srvconf.lib/parsers/get_tariff.cpp +++ b/stglibs/srvconf.lib/parsers/get_tariff.cpp @@ -178,7 +178,11 @@ if (strcasecmp(el, "tariff") == 0) error = "Tariff not found."; } else + { parsingAnswer = true; + if (strcasecmp(attr[0], "name") == 0) + info.tariffConf.name = attr[1]; + } } else parsingAnswer = true; @@ -188,5 +192,5 @@ if (strcasecmp(el, "tariff") == 0) void GET_TARIFF::PARSER::ParseTariffParams(const char * el, const char ** attr) { if (!TryParse(propertyParsers, ToLower(el), attr)) - error = "Invalid parameter."; + error = std::string("Invalid parameter '") + el + "'."; }