X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/33a5f978014e65a402a3d376c7e47bd8ee8ab8ab..954b8556b4bf52226085867069af83e63614a7c6:/Client/src/principal.cpp?ds=sidebyside diff --git a/Client/src/principal.cpp b/Client/src/principal.cpp index 9fabc78..89caf82 100644 --- a/Client/src/principal.cpp +++ b/Client/src/principal.cpp @@ -414,7 +414,8 @@ void Principal::loadXML() xmlDocPtr document; document = xmlParseMemory(xml_body.c_str(),xml_body.size()); if (document == NULL) { - std::cout << "EEERRRRRRROOOOOOOOOO" << std::endl; + txt_view->get_buffer()->insert(txt_view->get_buffer()->begin(),"No se pudo cargar XML enviado por el servidor."); + is_xml_loaded = false; return; } is_xml_loaded = true; @@ -807,7 +808,7 @@ void Principal::read_status_xml(const std::string &frame) xmlDocPtr document; document = xmlParseMemory(frame.c_str(),frame.size()); if (document == NULL) { - std::cout << "read_status_xml::no se creo documento" << std::endl; + txt_view->get_buffer()->insert(txt_view->get_buffer()->begin(), "ERROR : No se pudo leer el Ășltimo frame!\n"); return; }