summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/interactive.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/interactive.pm b/perl-install/interactive.pm
index 644e75a29..e978e9b6d 100644
--- a/perl-install/interactive.pm
+++ b/perl-install/interactive.pm
@@ -262,6 +262,7 @@ sub ask_from_normalize {
foreach my $e (@$l) {
if (my $li = $e->{list}) {
+ ref $e->{val} eq 'SCALAR' or internal_error($e->{val} ? "field {val} must be a reference" : "field {val} is mandatory");
if ($e->{sort} || @$li > 10 && !exists $e->{sort}) {
my @l2 = map { may_apply($e->{format}, $_) } @$li;
my @places = sort { $l2[$a] cmp $l2[$b] } 0 .. $#l2;