[Pkg-owncloud-commits] [ocsync] 11/29: Set errno and error message if neon errors in fetch_resource_list.

Sandro Knauß hefee-guest at moszumanska.debian.org
Fri Dec 13 14:26:34 UTC 2013


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository ocsync.

commit bdf36f58a888a42b17f72237ba13e36545c5a1e3
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Tue Dec 10 11:58:55 2013 +0100

    Set errno and error message if neon errors in fetch_resource_list.
    
    This at least shows proper error messages to the user, as described
    in mirall#451
---
 src/csync_owncloud.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/csync_owncloud.c b/src/csync_owncloud.c
index efd7600..d30cc7f 100644
--- a/src/csync_owncloud.c
+++ b/src/csync_owncloud.c
@@ -727,8 +727,12 @@ static struct listdir_context *fetch_resource_list(const char *uri, int depth)
 
     if( ret != NE_OK ) {
         const char *err = NULL;
+        set_errno_from_neon_errcode(ret);
 
         err = ne_get_error( dav_session.ctx );
+        if(err) {
+            set_error_message(err);
+        }
         DEBUG_WEBDAV("WRN: propfind named failed with %d, request error: %s", ret, err ? err : "<nil>");
     }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/ocsync.git



More information about the Pkg-owncloud-commits mailing list