EIO is not necessarily a proxy error.

Should change error message such as
   "CSync failed to connect through a proxy. 500 Internal Server Error"
To:
   "CSync processing step update failed. 500 Internal Server Error"
This commit is contained in:
Olivier Goffart 2014-01-20 13:58:54 +01:00
parent 316aade340
commit b93efbaefe

View file

@ -452,9 +452,6 @@ int csync_ftw(CSYNC *ctx, const char *uri, csync_walker_fn fn,
ctx->status_code = csync_errno_to_status(errno, CSYNC_STATUS_OPENDIR_ERROR);
if (errno == EACCES) {
return 0;
} else if(errno == EIO ) {
/* Proxy problems (ownCloud) */
ctx->status_code = CSYNC_STATUS_PROXY_ERROR;
} else if(errno == ENOENT) {
asp = asprintf( &ctx->error_string, "%s", uri);
if (asp < 0) {