diff options
author | Pascal Rigaux <pixel@mandriva.com> | 1999-09-24 08:53:00 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 1999-09-24 08:53:00 +0000 |
commit | 2d4133ff240757edb14cf10b83bbbabb274772f3 (patch) | |
tree | adbdd0c33b5ff160ed5a1eb80cdb47837c7e0b45 /perl-install/common.pm | |
parent | 0925f92586a8a200a632eece658b2a45b09c9cc8 (diff) | |
download | drakx-2d4133ff240757edb14cf10b83bbbabb274772f3.tar drakx-2d4133ff240757edb14cf10b83bbbabb274772f3.tar.gz drakx-2d4133ff240757edb14cf10b83bbbabb274772f3.tar.bz2 drakx-2d4133ff240757edb14cf10b83bbbabb274772f3.tar.xz drakx-2d4133ff240757edb14cf10b83bbbabb274772f3.zip |
no_comment
Diffstat (limited to 'perl-install/common.pm')
-rw-r--r-- | perl-install/common.pm | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/perl-install/common.pm b/perl-install/common.pm index e9e803c65..5094e0e48 100644 --- a/perl-install/common.pm +++ b/perl-install/common.pm @@ -183,12 +183,14 @@ sub catch_cdie(&&) { &$f(); } -sub cdie { - $@ = join '', @_; +sub cdie($;&) { + print "JJJJ\n"; + my ($err, $f) = @_; foreach (@common::cdie_catches) { - &{$_}(@_) and return; + $@ = $err; + &{$_}(\$err) and return; } - die join '', @_; + die $err; } sub all { |