From 2e73ce56056b64ee00aa473fe6740c56bc2e4ba3 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Sat, 2 Mar 2013 14:30:35 +0100 Subject: [PATCH] owncloud: Properly report the error when the connection drop --- modules/csync_owncloud.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/csync_owncloud.c b/modules/csync_owncloud.c index 59b337fe5..2500010c8 100644 --- a/modules/csync_owncloud.c +++ b/modules/csync_owncloud.c @@ -1739,7 +1739,9 @@ static int owncloud_sendfile(csync_vio_method_handle_t *src, csync_vio_method_ha set_errno_from_neon_errcode(neon_stat); DEBUG_WEBDAV("Error GET: Neon: %d, errno %d", neon_stat, errno); - rc = -1; + error_string = dav_session.error_string; + error_code = errno; + rc = 1; } else { status = ne_get_status( write_ctx->req ); DEBUG_WEBDAV("GET http result %d (%s)", status->code, status->reason_phrase ? status->reason_phrase : "