projects
/
catagits/Catalyst-Runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
d918350
)
be a bit more anal about the checking for successful load
Yuval Kogman [Wed, 7 Jun 2006 14:37:39 +0000 (14:37 +0000)]
lib/Catalyst/Utils.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Catalyst/Utils.pm
b/lib/Catalyst/Utils.pm
index
ed40b02
..
ac20a70
100644
(file)
--- a/
lib/Catalyst/Utils.pm
+++ b/
lib/Catalyst/Utils.pm
@@
-229,7
+229,12
@@
sub ensure_class_loaded {
eval "require $class";
$error = $@;
}
+
die $error if $error;
+ die "require $class was successful but the package is not defined"
+ unless Class::Inspector->loaded($class);
+
+ return 1;
}