die on error
Sebastian Riedel [Thu, 14 Apr 2005 15:52:55 +0000 (15:52 +0000)]
lib/Catalyst.pm
lib/Catalyst/Engine.pm

index 2f4aa1f..0615253 100644 (file)
@@ -186,9 +186,7 @@ sub import {
 
             $plugin->require;
 
-            if ($@) {
-                $caller->log->error(qq/Couldn't load plugin "$plugin", "$@"/);
-            }
+            if ($@) { die qq/Couldn't load plugin "$plugin", "$@"/ }
             else {
                 push @plugins, $plugin;
                 no strict 'refs';
index a7f2e7b..6764524 100644 (file)
@@ -624,8 +624,7 @@ sub setup_components {
 
     if ( my $error = $@ ) {
         chomp $error;
-        $self->log->error(
-            qq/Couldn't initialize "Module::Pluggable::Fast", "$error"/);
+        die qq/Couldn't load components "$error"/;
     }
 
     $self->components( {} );