From 4e40377ac262b5f0a76b3fff08f0ad7ce58cf56c Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Wed, 8 Nov 2000 09:32:10 +0000 Subject: [PATCH] Better error messages when unlink fails --- receiver.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/receiver.c b/receiver.c index b10f7c61..e5baa339 100644 --- a/receiver.c +++ b/receiver.c @@ -82,14 +82,15 @@ static void delete_one(struct file_struct *f) { if (!S_ISDIR(f->mode)) { if (robust_unlink(f_name(f)) != 0) { - rprintf(FERROR,"unlink %s : %s\n",f_name(f),strerror(errno)); + rprintf(FERROR,"delete_one: unlink %s: %s\n",f_name(f),strerror(errno)); } else if (verbose) { rprintf(FINFO,"deleting %s\n",f_name(f)); } } else { if (do_rmdir(f_name(f)) != 0) { if (errno != ENOTEMPTY && errno != EEXIST) - rprintf(FERROR,"rmdir %s : %s\n",f_name(f),strerror(errno)); + rprintf(FERROR,"delete_one: rmdir %s: %s\n", + f_name(f), strerror(errno)); } else if (verbose) { rprintf(FINFO,"deleting directory %s\n",f_name(f)); } -- 2.34.1