Browse Source

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
Klaas Freitag 12 years ago
parent
commit
bdf36f58a8
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/csync_owncloud.c

+ 4 - 0
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>");
     }