From: Maxim Mamontov Date: Fri, 10 Oct 2014 19:46:17 +0000 (+0300) Subject: Uniform error reporting for services managment. X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/536288bed73de62c0935144e2b9ba67a93764839?ds=sidebyside Uniform error reporting for services managment. --- diff --git a/projects/stargazer/plugins/configuration/sgconfig/parser_services.cpp b/projects/stargazer/plugins/configuration/sgconfig/parser_services.cpp index 0c1e1476..a9599d54 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/parser_services.cpp +++ b/projects/stargazer/plugins/configuration/sgconfig/parser_services.cpp @@ -106,7 +106,7 @@ void ADD_SERVICE::CreateAnswer() if (m_services.Add(conf, &m_currAdmin) == 0) m_answer = "<" + m_tag + " result=\"Ok\"/>"; else - m_answer = "<" + m_tag + " result=\"Error. " + m_services.GetStrError() + "\"/>"; + m_answer = "<" + m_tag + " result=\"" + m_services.GetStrError() + "\"/>"; } int DEL_SERVICE::Start(void *, const char * el, const char ** attr) @@ -124,7 +124,7 @@ void DEL_SERVICE::CreateAnswer() if (m_services.Del(m_name, &m_currAdmin) == 0) m_answer = "<" + m_tag + " result=\"Ok\"/>"; else - m_answer = "<" + m_tag + " result=\"Error. " + m_services.GetStrError() + "\"/>"; + m_answer = "<" + m_tag + " result=\"" + m_services.GetStrError() + "\"/>"; } int CHG_SERVICE::Start(void *, const char * el, const char ** attr)