about summary refs log tree commit homepage
path: root/lib/PublicInbox/Spawn.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/Spawn.pm')
-rw-r--r--lib/PublicInbox/Spawn.pm5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/PublicInbox/Spawn.pm b/lib/PublicInbox/Spawn.pm
index 878843a6..6e33c712 100644
--- a/lib/PublicInbox/Spawn.pm
+++ b/lib/PublicInbox/Spawn.pm
@@ -293,15 +293,12 @@ ALL_LIBC
 use Inline C => $all_libc, BUILD_NOISY => 1;
 EOM
                 my $err = $@;
-                my $ndc_err = '';
-                $err = $@;
                 open(STDERR, '>&', $olderr) or warn "restore stderr: $!";
                 open(STDOUT, '>&', $oldout) or warn "restore stdout: $!";
                 if ($err) {
                         seek($fh, 0, SEEK_SET);
                         my @msg = <$fh>;
-                        warn "Inline::C build failed:\n",
-                                $ndc_err, $err, "\n", @msg;
+                        warn "Inline::C build failed:\n", $err, "\n", @msg;
                         $all_libc = undef;
                 }
         }