mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-25 13:55:47 +03:00
Improved logging in error case (minor fix).
This commit is contained in:
parent
6ba5bf45d8
commit
5b38e2cb5a
2 changed files with 7 additions and 3 deletions
|
@ -417,6 +417,11 @@ int csync_update(CSYNC *ctx) {
|
|||
|
||||
rc = csync_ftw(ctx, ctx->remote.uri, csync_walker, MAX_DEPTH);
|
||||
|
||||
if( rc < 0 ) {
|
||||
if( errno == 5 ) {
|
||||
ctx->error_code = CSYNC_ERR_ACCESS_FAILED; // FIXME: improve error handling!
|
||||
}
|
||||
}
|
||||
csync_gettime(&finish);
|
||||
|
||||
CSYNC_LOG(CSYNC_LOG_PRIORITY_DEBUG,
|
||||
|
|
|
@ -223,9 +223,8 @@ int csync_ftw(CSYNC *ctx, const char *uri, csync_walker_fn fn,
|
|||
} else {
|
||||
strerror_r(errno, errbuf, sizeof(errbuf));
|
||||
CSYNC_LOG(CSYNC_LOG_PRIORITY_ERROR,
|
||||
"opendir failed for %s - %s",
|
||||
uri,
|
||||
errbuf);
|
||||
"opendir failed for %s - %s (errno %d)",
|
||||
uri, errbuf, errno);
|
||||
goto error;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue