summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-03-19 11:56:34 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-03-19 11:56:34 +0000
commit4d2ddb4244101e775aa6afbe37c4ed67818ab79d (patch)
tree0f9933f33081dd35eb5f56e2aadbc2c34953b9ce /perl-install
parent656088456786454738ad116226e2cf5dea395371 (diff)
downloaddrakx-4d2ddb4244101e775aa6afbe37c4ed67818ab79d.tar
drakx-4d2ddb4244101e775aa6afbe37c4ed67818ab79d.tar.gz
drakx-4d2ddb4244101e775aa6afbe37c4ed67818ab79d.tar.bz2
drakx-4d2ddb4244101e775aa6afbe37c4ed67818ab79d.tar.xz
drakx-4d2ddb4244101e775aa6afbe37c4ed67818ab79d.zip
(ask_from_listf_no_check): fix the filtering of exceptions
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/interactive.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/interactive.pm b/perl-install/interactive.pm
index 10283ebae..db5c61c03 100644
--- a/perl-install/interactive.pm
+++ b/perl-install/interactive.pm
@@ -141,7 +141,7 @@ sub ask_from_listf_no_check {
if_($l->[1], cancel => may_apply($f, $l->[1]), focus_cancel => $def eq $l->[1]) }, []
) ? $l->[0] : $l->[1];
};
- $@ =~ /^wizcancel/ ? undef : $ret;
+ ($@ ? $@ =~ /^wizcancel/ : die) : ($@ ? die : $ret);
} else {
ask_from_entries_refH($o, $title, $message, [ { val => \$def, type => 'list', list => $l, help => $help, format => $f } ]) && $def;
}