From 645a015198b93d019d275aec4be82d15ca799114 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 7 Jan 2003 01:25:45 +0000 Subject: nicer debug message --- perl-install/interactive.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/perl-install/interactive.pm b/perl-install/interactive.pm index c92215b31..a09f68f37 100644 --- a/perl-install/interactive.pm +++ b/perl-install/interactive.pm @@ -291,6 +291,7 @@ sub ask_from { sub ask_from_normalize { my ($_o, $common, $l) = @_; + ref($l) eq 'ARRAY' or internal_error('ask_from_normalize'); foreach my $e (@$l) { if (my $li = $e->{list}) { ref($e->{val}) =~ /SCALAR|REF/ or internal_error($e->{val} ? "field {val} must be a reference (it is $e->{val})" : "field {val} is mandatory"); #-# -- cgit v1.2.1