From: Ian Jackson Date: Mon, 1 Oct 2018 14:30:20 +0000 (+0100) Subject: Dgit.pm: Improve message for control file parse failure X-Git-Tag: archive/debian/7.0_pre1~7 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;ds=sidebyside;h=73806a4b22c2265bac6a269bd5ba8abc81f88ae1;hp=f7a2d017449c7877b095b5761aedef5e5b29c458;p=dgit.git Dgit.pm: Improve message for control file parse failure Use fail rather than die. Signed-off-by: Ian Jackson --- diff --git a/Debian/Dgit.pm b/Debian/Dgit.pm index fc146a3a..80b693b6 100644 --- a/Debian/Dgit.pm +++ b/Debian/Dgit.pm @@ -630,7 +630,7 @@ sub parsecontrolfh ($$;$) { my %opts = ('name' => $desc); $opts{allow_pgp}= $allowsigned || !$dpkgcontrolhash_noissigned; $c = Dpkg::Control::Hash->new(%opts); - $c->parse($fh,$desc) or die "parsing of $desc failed"; + $c->parse($fh,$desc) or fail "parsing of $desc failed"; last if $allowsigned; last if $dpkgcontrolhash_noissigned; my $issigned= $c->get_option('is_pgp_signed');