diff options
author | Eric Wong <e@80x24.org> | 2021-09-10 09:15:36 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-09-10 09:18:32 +0000 |
commit | 9fefe38c7415a00fe7f73bf77096ebeacd0e1150 (patch) | |
tree | 22055c2f8435f70b15a64348df1e44e80fa808d9 /lib/PublicInbox | |
parent | de39bfcb19571f5c723c03d35a26a7af2e03d993 (diff) | |
download | public-inbox-9fefe38c7415a00fe7f73bf77096ebeacd0e1150.tar.gz |
If the mirror.done file doesn't exist for unlink, it's because we already got another error, so don't confuse users by noting an unlink error since the ENOENT is expected in the face of other errors.
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r-- | lib/PublicInbox/LeiMirror.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiMirror.pm b/lib/PublicInbox/LeiMirror.pm index fca11ccf..638add42 100644 --- a/lib/PublicInbox/LeiMirror.pm +++ b/lib/PublicInbox/LeiMirror.pm @@ -16,7 +16,7 @@ sub do_finish_mirror { # dwaitpid callback if ($?) { $lei->child_error($?); } elsif (!unlink($f)) { - $lei->err("unlink($f): $!"); + $lei->err("unlink($f): $!") unless $!{ENOENT}; } else { $lei->add_external_finish($mrr->{dst}); $lei->qerr("# mirrored $mrr->{src} => $mrr->{dst}"); |