[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SCM] Debian package checker branch, master, updated. 2.5.14-60-g2138bea



The following commit has been merged in the master branch:
commit 2138beab81c566e29e8d9a6e5ea3cb776b946d61
Author: Niels Thykier <niels@thykier.net>
Date:   Wed Jul 10 19:08:01 2013 +0200

    L::Tags: Use croak instad of die with unknown tags
    
    Signed-off-by: Niels Thykier <niels@thykier.net>

diff --git a/debian/changelog b/debian/changelog
index ad659a4..ce93d2e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -87,6 +87,10 @@ lintian (2.5.15) UNRELEASED; urgency=low
       was passed on the command line before the .changes file.
       Thanks to Salvo Tomaselli for reporting the bug.
       (Closes: #714437)
+  * lib/Lintian/Tags.pm:
+    + [NT] Use croak instead of die when a check emits an
+      unknown tag.  This gives the check writer a better chance
+      of finding where the problem occured.
   * lib/Lintian/Util.pm:
     + [NT] Have parse_dpkg_control and visit_dpkg_control
       give a more detailed line number information about
diff --git a/lib/Lintian/Tags.pm b/lib/Lintian/Tags.pm
index 57c3414..6bc6c2a 100644
--- a/lib/Lintian/Tags.pm
+++ b/lib/Lintian/Tags.pm
@@ -23,6 +23,7 @@ use strict;
 use warnings;
 use autodie;
 
+use Carp qw(croak);
 use Exporter qw(import);
 use List::MoreUtils qw(any);
 
@@ -244,7 +245,7 @@ sub tag {
     # $self->suppressed below if the tag is not enabled.
     my $info = $self->{profile}->get_tag ($tag, 1);
     unless ($info) {
-        die "tried to issue unknown tag $tag";
+        croak "tried to issue unknown tag $tag";
     }
     return if $self->suppressed($tag);
 

-- 
Debian package checker


Reply to: