From 1bca1de6cc45c8215a42442096a8f64241eebcae Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Mon, 15 Dec 2003 08:06:52 +0000 Subject: [PATCH] Handle new RERR_VANISHED error. --- log.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/log.c b/log.c index 30eb04de..29fdd1cc 100644 --- a/log.c +++ b/log.c @@ -53,6 +53,7 @@ struct { { RERR_WAITCHILD , "some error returned by waitpid()" }, { RERR_MALLOC , "error allocating core memory buffers" }, { RERR_PARTIAL , "some files could not be transferred" }, + { RERR_VANISHED , "some files vanished before they could be transfered" }, { RERR_TIMEOUT , "timeout in data send/receive" }, { RERR_CMD_FAILED , "remote shell failed" }, { RERR_CMD_KILLED , "remote shell killed" }, @@ -567,7 +568,13 @@ void log_exit(int code, const char *file, int line) if (!name) name = "unexplained error"; - rprintf(FERROR,"rsync error: %s (code %d) at %s(%d)\n", - name, code, file, line); + /* VANISHED is not an error, only a warning */ + if (code == RERR_VANISHED) { + rprintf(FINFO, "rsync warning: %s (code %d) at %s(%d)\n", + name, code, file, line); + } else { + rprintf(FERROR, "rsync error: %s (code %d) at %s(%d)\n", + name, code, file, line); + } } } -- 2.34.1