1
0
mirror of https://github.com/chylex/Nextcloud-Desktop.git synced 2025-04-13 04:15:43 +02:00

Improve debug output if open fails.

This commit is contained in:
Andreas Schneider 2008-06-16 16:42:46 +02:00
parent 0eb0842e0a
commit 8a9a4b18fb

View File

@ -113,7 +113,7 @@ static int _csync_push_file(CSYNC *ctx, csync_file_stat_t *st) {
} else {
rc = 1;
}
CSYNC_LOG(CSYNC_LOG_PRIORITY_ERROR, "file: %s, command: open, error: %s", suri, strerror(errno));
CSYNC_LOG(CSYNC_LOG_PRIORITY_ERROR, "file: %s, command: open(O_RDONLY), error: %s", suri, strerror(errno));
goto out;
}
@ -151,11 +151,11 @@ static int _csync_push_file(CSYNC *ctx, csync_file_stat_t *st) {
break;
case ENOMEM:
rc = -1;
CSYNC_LOG(CSYNC_LOG_PRIORITY_ERROR, "file: %s, command: open, error: %s", duri, strerror(errno));
CSYNC_LOG(CSYNC_LOG_PRIORITY_ERROR, "file: %s, command: open(O_CREAT), error: %s", duri, strerror(errno));
goto out;
break;
default:
CSYNC_LOG(CSYNC_LOG_PRIORITY_ERROR, "file: %s, command: open, error: %s", duri, strerror(errno));
CSYNC_LOG(CSYNC_LOG_PRIORITY_ERROR, "file: %s, command: open(O_CREAT), error: %s", duri, strerror(errno));
rc = 1;
goto out;
break;