Only set the error code to a generic one if it is still ok.

This commit is contained in:
Klaas Freitag 2013-11-24 22:18:08 +01:00
parent cc6c5e0db5
commit b6eae58a2c

View file

@ -576,7 +576,7 @@ int csync_ftw(CSYNC *ctx, const char *uri, csync_walker_fn fn,
}
if (rc < 0) {
if (!CSYNC_STATUS_IS_OK(ctx->status_code)) {
if (CSYNC_STATUS_IS_OK(ctx->status_code)) {
ctx->status_code = CSYNC_STATUS_UPDATE_ERROR;
}