From: Maxim Mamontov Date: Tue, 27 May 2014 13:59:12 +0000 (+0300) Subject: Fixed error handling. X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/0c552f312b27f23a0c8a9dddb4220c3d9c59cdf1?ds=inline Fixed error handling. --- diff --git a/stglibs/srvconf.lib/parsers/get_user.cpp b/stglibs/srvconf.lib/parsers/get_user.cpp index 3da8ee98..e796d450 100644 --- a/stglibs/srvconf.lib/parsers/get_user.cpp +++ b/stglibs/srvconf.lib/parsers/get_user.cpp @@ -139,14 +139,11 @@ if (strcasecmp(el, "user") == 0) error = attr[3]; else error = "User not found."; - return; } else if (strcasecmp(attr[0], "login") == 0 && attr[1]) info.login = attr[1]; - parsingAnswer = true; } - else - parsingAnswer = true; + parsingAnswer = true; } } //-----------------------------------------------------------------------------