]> git.stg.codes - stg.git/commitdiff
Uniform error reporting for services managment.
authorMaxim Mamontov <faust.madf@gmail.com>
Fri, 10 Oct 2014 19:46:17 +0000 (22:46 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Fri, 10 Oct 2014 19:46:17 +0000 (22:46 +0300)
projects/stargazer/plugins/configuration/sgconfig/parser_services.cpp

index 0c1e1476073b2ba420423107a704c3b374015260..a9599d54953a2bfdd5d56121be28e191a53fb280 100644 (file)
@@ -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)