summaryrefslogtreecommitdiffstats
path: root/perl-install/install2.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/install2.pm')
-rw-r--r--perl-install/install2.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/perl-install/install2.pm b/perl-install/install2.pm
index c46226bb0..abcae4402 100644
--- a/perl-install/install2.pm
+++ b/perl-install/install2.pm
@@ -584,9 +584,10 @@ sub main {
};
$clicked = 0;
while ($@) {
- $@ =~ /^setstep (.*)/ and $o->{step} = $1, $clicked = 1, redo MAIN;
- $@ =~ /^theme_changed$/ and redo MAIN;
- eval { $o->errorInStep($@) };
+ local $_ = $@;
+ /^setstep (.*)/ and $o->{step} = $1, $clicked = 1, redo MAIN;
+ /^theme_changed$/ and redo MAIN;
+ eval { $o->errorInStep($_) };
$@ and next;
$o->{step} = $o->{steps}{$o->{step}}{onError};
redo MAIN;