]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
qspawn: fix bad error reporting on errors
authorEric Wong <e@80x24.org>
Wed, 11 Jan 2017 04:12:25 +0000 (04:12 +0000)
committerEric Wong <e@80x24.org>
Wed, 11 Jan 2017 04:13:17 +0000 (04:13 +0000)
Oops :x

lib/PublicInbox/Qspawn.pm

index 2845bc1a98402805679a61ac41feba8aa56111fc..cd1079a0c5f1ce92be5e431879fc1d123fb2accd 100644 (file)
@@ -65,7 +65,7 @@ sub psgi_return {
        my ($fh, $rpipe);
        my $end = sub {
                if (my $err = $self->finish) {
-                       $err = join(' ', @{$self->{args}->{cmd}}).": $err\n";
+                       $err = join(' ', @{$self->{args}->[0]}).": $err\n";
                        $env->{'psgi.errors'}->print($err);
                }
                $fh->close if $fh; # async-only