subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gst...@apache.org
Subject svn commit: r1339385 - /subversion/trunk/subversion/libsvn_ra_serf/util.c
Date Wed, 16 May 2012 21:52:51 GMT
Author: gstein
Date: Wed May 16 21:52:50 2012
New Revision: 1339385

URL: http://svn.apache.org/viewvc?rev=1339385&view=rev
Log:
Make sure we don't forget about an error.

* subversion/libsvn_ra_serf/util.c:
  (expat_response_handler): combine any potential INNER_ERROR into the
    error we construct when we hit a parsing error

Modified:
    subversion/trunk/subversion/libsvn_ra_serf/util.c

Modified: subversion/trunk/subversion/libsvn_ra_serf/util.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_serf/util.c?rev=1339385&r1=1339384&r2=1339385&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_serf/util.c (original)
+++ subversion/trunk/subversion/libsvn_ra_serf/util.c Wed May 16 21:52:50 2012
@@ -2395,7 +2395,8 @@ expat_response_handler(serf_request_t *r
 
       expat_status = XML_Parse(ectx->parser, data, (int)len, 0 /* isFinal */);
       if (expat_status == XML_STATUS_ERROR)
-        return svn_error_createf(SVN_ERR_XML_MALFORMED, NULL,
+        return svn_error_createf(SVN_ERR_XML_MALFORMED,
+                                 ectx->inner_error,
                                  _("The %s response contains invalid XML"
                                    " (%d %s)"),
                                  ectx->handler->method,



Mime
View raw message