Include the version number when we exit with an error or warning.

This commit is contained in:
Wayne Davison
2006-03-28 18:23:24 +00:00
parent 920240a687
commit 43eae40e45

8
log.c
View File

@@ -769,11 +769,11 @@ void log_exit(int code, const char *file, int line)
/* VANISHED is not an error, only a warning */
if (code == RERR_VANISHED) {
rprintf(FINFO, "rsync warning: %s (code %d) at %s(%d) [%s]\n",
name, code, file, line, who_am_i());
rprintf(FINFO, "rsync warning: %s (code %d) at %s(%d) [%s=%s]\n",
name, code, file, line, who_am_i(), RSYNC_VERSION);
} else {
rprintf(FERROR, "rsync error: %s (code %d) at %s(%d) [%s]\n",
name, code, file, line, who_am_i());
rprintf(FERROR, "rsync error: %s (code %d) at %s(%d) [%s=%s]\n",
name, code, file, line, who_am_i(), RSYNC_VERSION);
}
}
}