From f658918dcc5200b563beea6e1ea3411e89726cb4 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 24 Oct 2021 01:45:22 +0000 Subject: [PATCH] viewvcs: die on tmpfile() errors Just let Plack::Util::run_app catch the error and generate a 500 response for it. --- lib/PublicInbox/ViewVCS.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/ViewVCS.pm b/lib/PublicInbox/ViewVCS.pm index 021b70cf..3cbc363b 100644 --- a/lib/PublicInbox/ViewVCS.pm +++ b/lib/PublicInbox/ViewVCS.pm @@ -194,7 +194,7 @@ sub show ($$;$) { $hints->{$to} = $v if $v ne ''; } - $ctx->{'log'} = tmpfile("solve.$oid_b"); + $ctx->{'log'} = tmpfile("solve.$oid_b") // die "tmpfile: $!"; $ctx->{fn} = $fn; my $solver = PublicInbox::SolverGit->new($ctx->{ibx}, \&solve_result, $ctx); -- 2.44.0