]> git.donarmstrong.com Git - debhelper.git/commitdiff
dh: Display $@ error if addon load fails. Closes: #541845
authorJoey Hess <joey@gnu.kitenet.net>
Sun, 16 Aug 2009 16:56:01 +0000 (12:56 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Sun, 16 Aug 2009 16:56:01 +0000 (12:56 -0400)
debian/changelog
dh

index 2df2c62469cca91a989c566d965ae5d43fd22277..56f3b4009f60e21d2725cb25f669bb811c481270 100644 (file)
@@ -5,6 +5,7 @@ debhelper (7.3.14) UNRELEASED; urgency=low
 
   [ Joey Hess ]
   * Run pod2man with --utf8. Closes: #541270
+  * dh: Display $@ error if addon load fails. Closes: #541845
 
  -- Colin Watson <cjwatson@debian.org>  Thu, 13 Aug 2009 09:00:24 +0100
 
diff --git a/dh b/dh
index 9a6af325433c8ed10c40cee431bcf0bbc8e7cba2..bdd78c52591ab68bc94ddc968ded73c2fddecd7f 100755 (executable)
--- a/dh
+++ b/dh
@@ -362,7 +362,7 @@ foreach my $addon (@{$dh{WITH}}) {
        $mod=~s/-/_/g;
        eval "use $mod";
        if ($@) {
-               error("--with $addon not supported or failed to load module $mod");
+               error("unable to load addon $addon: $@");
        }
 }