mrefile: better error message on ENOENT

pull/147/head
Leah Neukirchen 6 years ago
parent d2dfe8bd30
commit 7ea96a6dea

@ -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;
}

Loading…
Cancel
Save