From 7f9e3fe4eb15c9ba2ee4205c182ba68c8cc7be0f Mon Sep 17 00:00:00 2001 From: Patrick Benavoli Date: Thu, 24 Jul 2014 18:45:09 +0200 Subject: 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 --- xmlserializer/XmlStringDocSink.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xmlserializer') 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 @@ -50,6 +49,8 @@ bool CXmlStringDocSink::doProcess(CXmlDocSource& xmlDocSource, if (!pcDumpedDoc) { + serializingContext.setError("Unable to encode XML document in memory"); + return false; } -- cgit v1.1