summaryrefslogtreecommitdiffstats
path: root/xmlserializer
diff options
context:
space:
mode:
authorPatrick Benavoli <patrick.benavoli@intel.com>2014-07-24 18:45:09 +0200
committerPhilippe Afonso <philippex.afonso@intel.com>2015-02-18 11:13:26 +0100
commit7f9e3fe4eb15c9ba2ee4205c182ba68c8cc7be0f (patch)
treed3d4ebcc6b0446aacaca1d26835493bf298ec1e5 /xmlserializer
parent0548523ab6bbca766dcce4be97a0c50efd529d90 (diff)
downloadexternal_parameter-framework-7f9e3fe4eb15c9ba2ee4205c182ba68c8cc7be0f.zip
external_parameter-framework-7f9e3fe4eb15c9ba2ee4205c182ba68c8cc7be0f.tar.gz
external_parameter-framework-7f9e3fe4eb15c9ba2ee4205c182ba68c8cc7be0f.tar.bz2
Missing error reporting statement in XML Export feature
BZ: 209937 In case an error is encountered during the XML encoding operation, no error message is created to log the issue. This patch updates XmlStringDocSink.cpp::doProcess() so that the error string is filled in case of errors. Change-Id: Ie93e50f857506b8637b1bb0dd8d411a01f16ec49 Signed-off-by: Patrick Benavoli <patrick.benavoli@intel.com>
Diffstat (limited to 'xmlserializer')
-rw-r--r--xmlserializer/XmlStringDocSink.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmlserializer/XmlStringDocSink.cpp b/xmlserializer/XmlStringDocSink.cpp
index 4b05d85..caec545 100644
--- a/xmlserializer/XmlStringDocSink.cpp
+++ b/xmlserializer/XmlStringDocSink.cpp
@@ -27,7 +27,6 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-
#include "XmlStringDocSink.h"
#include <libxml/parser.h>
@@ -50,6 +49,8 @@ bool CXmlStringDocSink::doProcess(CXmlDocSource& xmlDocSource,
if (!pcDumpedDoc) {
+ serializingContext.setError("Unable to encode XML document in memory");
+
return false;
}