summaryrefslogtreecommitdiff
path: root/lib/utf8_heavy.pl
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-01-08 21:20:26 +0000
committerNicholas Clark <nick@ccl4.org>2007-01-08 21:20:26 +0000
commite81465beff59e6c9907613fe00ebce59d81fb1e8 (patch)
tree4c6010205cc62e3f79dff3aa7dc7ac005ccccab8 /lib/utf8_heavy.pl
parent3236f110cb098d9081961e6c9f4585ecaf729cc5 (diff)
downloadperl-e81465beff59e6c9907613fe00ebce59d81fb1e8.tar.gz
do $file; won't propagate errors from die, as do is an implicit eval.
So need to propagate errors with $@. p4raw-id: //depot/perl@29723
Diffstat (limited to 'lib/utf8_heavy.pl')
-rw-r--r--lib/utf8_heavy.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utf8_heavy.pl b/lib/utf8_heavy.pl
index de4d01d95c..8a2ba71066 100644
--- a/lib/utf8_heavy.pl
+++ b/lib/utf8_heavy.pl
@@ -194,7 +194,7 @@ sub SWASHNEW {
return $Cache{$class, $file};
}
- $list = do $file;
+ $list = do $file; die $@ if $@;
}
$ListSorted = 1; ## we know that these lists are sorted