about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--mdeliver.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/mdeliver.c b/mdeliver.c
index 2d0511a..e53e5e2 100644
--- a/mdeliver.c
+++ b/mdeliver.c
@@ -88,8 +88,12 @@ tryagain:
 		if (outfd < 0) {
 			if (errno == EEXIST)
 				goto tryagain;
-			fprintf(stderr, "mrefile: %s: %s\n",
-			    tmp, strerror(errno));
+			if (errno == ENOENT)
+				fprintf(stderr, "mrefile: %s/tmp: %s\n",
+				    targetdir, strerror(errno));
+			else
+				fprintf(stderr, "mrefile: %s: %s\n",
+				    tmp, strerror(errno));
 			return -1;
 		}