diff options
author | Eric Wong <e@80x24.org> | 2021-04-24 20:09:36 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-04-24 16:10:17 -0400 |
commit | b437cc7f5ad2712d9064c691c5946be80a73eedb (patch) | |
tree | fbdc316300fd969af69dffcd1de04b1567b40241 /lib/PublicInbox/TestCommon.pm | |
parent | 1c0dce28a8604b16488ea7416dcf1bddd66a5d42 (diff) | |
download | public-inbox-b437cc7f5ad2712d9064c691c5946be80a73eedb.tar.gz |
This allows proper error reporting on daemon failure when using "check-run".
Diffstat (limited to 'lib/PublicInbox/TestCommon.pm')
-rw-r--r-- | lib/PublicInbox/TestCommon.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/TestCommon.pm b/lib/PublicInbox/TestCommon.pm index 49cecacd..09256852 100644 --- a/lib/PublicInbox/TestCommon.pm +++ b/lib/PublicInbox/TestCommon.pm @@ -321,6 +321,7 @@ sub run_script ($;$$) { # slurp the redirects back into user-supplied strings for my $fd (1..2) { my $fh = $fhref->[$fd] or next; + next unless -f $fh; seek($fh, 0, SEEK_SET) or die "seek: $!"; my $redir = $opt->{$fd}; local $/; |