X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=perl%2FAmanda%2FChanger%2Faggregate.pm;fp=perl%2FAmanda%2FChanger%2Faggregate.pm;h=4f59be32df866c38be550cacd00f6d4cbe9264d2;hb=109540caa4e37a3663b3dcfb9a205b9609e3f561;hp=a7c333d9bb98437024e4d6552fc6a011d274aae2;hpb=4c9eba1feb11adf189bceb4001c425e641f0b56a;p=debian%2Famanda diff --git a/perl/Amanda/Changer/aggregate.pm b/perl/Amanda/Changer/aggregate.pm index a7c333d..4f59be3 100644 --- a/perl/Amanda/Changer/aggregate.pm +++ b/perl/Amanda/Changer/aggregate.pm @@ -1,4 +1,4 @@ -# Copyright (c) 2009,2010 Zmanda, Inc. All Rights Reserved. +# Copyright (c) 2009-2012 Zmanda, Inc. All Rights Reserved. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License version 2 as published @@ -20,6 +20,7 @@ package Amanda::Changer::aggregate; use strict; use warnings; +use Carp; use vars qw( @ISA ); @ISA = qw( Amanda::Changer ); @@ -655,7 +656,7 @@ sub _for_each_child { ($params{'oksub'}, $params{'errsub'}, $params{'parent_cb'}, $params{'args'}); if (defined($args)) { - die "number of args did not match number of children" + confess "number of args did not match number of children" unless (@$args == $self->{'num_children'}); } else { $args = [ ( undef ) x $self->{'num_children'} ];