From 238e593609daf5de1011519afef1691b529e6229 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 9 Sep 2020 06:26:14 +0000 Subject: [PATCH] t/cgi.t: show stderr on failures This helped me diagnose an error I would've introduced in the next commit. --- t/cgi.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/cgi.t b/t/cgi.t index 366d6594..96c627c3 100644 --- a/t/cgi.t +++ b/t/cgi.t @@ -158,7 +158,7 @@ sub cgi_run { my ($in, $out, $err) = ("", "", ""); my $rdr = { 0 => \$in, 1 => \$out, 2 => \$err }; run_script(['.cgi'], \%env, $rdr); - die "unexpected error: \$?=$?" if $?; + die "unexpected error: \$?=$? ($err)" if $?; my ($head, $body) = split(/\r\n\r\n/, $out, 2); { head => $head, body => $body, err => $err } } -- 2.44.0