From 4d2ddb4244101e775aa6afbe37c4ed67818ab79d Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 19 Mar 2001 11:56:34 +0000 Subject: (ask_from_listf_no_check): fix the filtering of exceptions --- perl-install/interactive.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.1