chiark / gitweb /
Dgit.pm: Improve message for control file parse failure
[dgit.git] / Debian / Dgit.pm
index fc146a3aebe0febd0ed589168860710c1cd84c6b..80b693b68990be00a1f5d003a331d25e5fcefb90 100644 (file)
@@ -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');