From 889ca3fbbdd079873d52f94a23b01896be8f48de Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 21 Jun 2013 01:00:53 -0400 Subject: no, i think ->refresh should die if there were compile errors --- lib/Class/Refresh.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/Class/Refresh.pm') diff --git a/lib/Class/Refresh.pm b/lib/Class/Refresh.pm index 54798d5..956b45a 100644 --- a/lib/Class/Refresh.pm +++ b/lib/Class/Refresh.pm @@ -152,11 +152,11 @@ sub load_module { Class::Load::load_class($mod); } catch { - warn $_; + die $_; + } + finally { + $class->_update_cache_for($mod); }; - - - $class->_update_cache_for($mod); } sub _dependent_modules { -- cgit v1.2.3-54-g00ecf