summaryrefslogtreecommitdiffstats
path: root/perl-install/interactive.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-07-19 13:15:03 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-07-19 13:15:03 +0000
commit2e3f0212c97fa28ed9fa4837ef532da2db5312ed (patch)
treeda98500fa8626ecbe54190eb0d5a6308682c5b84 /perl-install/interactive.pm
parent9360e108248c60fc2142ca5ab5a76d62c835e86f (diff)
downloaddrakx-backup-do-not-use-2e3f0212c97fa28ed9fa4837ef532da2db5312ed.tar
drakx-backup-do-not-use-2e3f0212c97fa28ed9fa4837ef532da2db5312ed.tar.gz
drakx-backup-do-not-use-2e3f0212c97fa28ed9fa4837ef532da2db5312ed.tar.bz2
drakx-backup-do-not-use-2e3f0212c97fa28ed9fa4837ef532da2db5312ed.tar.xz
drakx-backup-do-not-use-2e3f0212c97fa28ed9fa4837ef532da2db5312ed.zip
nicer error message when {val} is not set for ask_from & list
Diffstat (limited to 'perl-install/interactive.pm')
-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;