mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 21:35:47 +03:00
Up- and download errors are soft errors.
This commit is contained in:
parent
fc8ec72371
commit
246e10c403
1 changed files with 9 additions and 8 deletions
|
@ -1594,14 +1594,15 @@ static int owncloud_sendfile(csync_vio_method_handle_t *src, csync_vio_method_ha
|
|||
DEBUG_WEBDAV("sendfile request failed with http status %d!", status->code);
|
||||
set_errno_from_http_errcode( status->code );
|
||||
/* decide if soft error or hard error that stops the whole sync. */
|
||||
/* Currently all problems concerning one file are soft errors */
|
||||
if( status->klass == 4 /* Forbidden and stuff, soft error */ ) {
|
||||
rc = 1;
|
||||
} else if( status->klass == 5 /* Server errors and such */ ) {
|
||||
rc = 1; /* Abort. */
|
||||
} else {
|
||||
rc = -1;
|
||||
}
|
||||
if( status->klass == 5 /* Server errors and such */ ) {
|
||||
rc = -1; /* Abort. */
|
||||
rc = 1;
|
||||
}
|
||||
|
||||
error_code = status->code;
|
||||
error_string = status->reason_phrase;
|
||||
} else {
|
||||
|
@ -1646,13 +1647,13 @@ static int owncloud_sendfile(csync_vio_method_handle_t *src, csync_vio_method_ha
|
|||
DEBUG_WEBDAV("sendfile request failed with http status %d!", status->code);
|
||||
set_errno_from_http_errcode( status->code );
|
||||
/* decide if soft error or hard error that stops the whole sync. */
|
||||
/* Currently all problems concerning one file are soft errors */
|
||||
if( status->klass == 4 /* Forbidden and stuff, soft error */ ) {
|
||||
rc = 1;
|
||||
} else if( status->klass == 5 /* Server errors and such */ ) {
|
||||
rc = 1; /* Abort. */
|
||||
} else {
|
||||
rc = -1;
|
||||
}
|
||||
if( status->klass == 5 /* Server errors and such */ ) {
|
||||
rc = -1; /* Abort. */
|
||||
rc = 1;
|
||||
}
|
||||
error_code = status->code;
|
||||
error_string = status->reason_phrase;
|
||||
|
|
Loading…
Reference in a new issue