mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 09:30:13 +03:00
Log the fact that csync was aborted
This commit is contained in:
parent
3d2c3b321c
commit
0dbecb129e
2 changed files with 3 additions and 0 deletions
|
@ -1431,6 +1431,7 @@ static int _csync_propagation_file_visitor(void *obj, void *data) {
|
|||
ctx = (CSYNC *) data;
|
||||
|
||||
if (ctx->abort) {
|
||||
CSYNC_LOG(CSYNC_LOG_PRIORITY_TRACE, "Aborted!");
|
||||
ctx->error_code = CSYNC_ERR_ABORTED;
|
||||
return -1;
|
||||
}
|
||||
|
@ -1498,6 +1499,7 @@ static int _csync_propagation_dir_visitor(void *obj, void *data) {
|
|||
ctx = (CSYNC *) data;
|
||||
|
||||
if (ctx->abort) {
|
||||
CSYNC_LOG(CSYNC_LOG_PRIORITY_TRACE, "Aborted!");
|
||||
ctx->error_code = CSYNC_ERR_ABORTED;
|
||||
return -1;
|
||||
}
|
||||
|
|
|
@ -280,6 +280,7 @@ int csync_walker(CSYNC *ctx, const char *file, const csync_vio_file_stat_t *fs,
|
|||
uint64_t h;
|
||||
|
||||
if (ctx->abort) {
|
||||
CSYNC_LOG(CSYNC_LOG_PRIORITY_TRACE, "Aborted!");
|
||||
ctx->error_code = CSYNC_ERR_ABORTED;
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue