[Bps-public-commit] r15113 - in Class-Require/trunk: lib/Class
sartak at bestpractical.com
sartak at bestpractical.com
Wed Aug 13 06:11:54 EDT 2008
Author: sartak
Date: Wed Aug 13 06:11:38 2008
New Revision: 15113
Modified:
Class-Require/trunk/ (props changed)
Class-Require/trunk/lib/Class/Require.pm
Log:
r69462 at onn: sartak | 2008-08-13 06:10:52 -0400
croak, don't die
Modified: Class-Require/trunk/lib/Class/Require.pm
==============================================================================
--- Class-Require/trunk/lib/Class/Require.pm (original)
+++ Class-Require/trunk/lib/Class/Require.pm Wed Aug 13 06:11:38 2008
@@ -15,7 +15,9 @@
my $class = shift;
return 1 if try_load_class($class);
- die "Unable to load class $class: $ERROR";
+
+ require Carp;
+ Carp::croak $ERROR;
}
sub try_load_class {
More information about the Bps-public-commit
mailing list