Use `confess' which produces a stack trace. And don't forget to use
Data::Dumper;
Bug introduced in
e6ce71a87a1c "Move various useful functions into
Dgit.pm [...]".
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
use strict;
use warnings;
+use Carp;
use POSIX;
use IO::Handle;
use Config;
use Digest::SHA;
+use Data::Dumper;
BEGIN {
use Exporter ();
}
sub cmdoutput_errok {
- die Dumper(\@_)." ?" if grep { !defined } @_;
+ confess Dumper(\@_)." ?" if grep { !defined } @_;
debugcmd "|",@_;
open P, "-|", @_ or die "$_[0] $!";
my $d;