From: Sebastian Riedel Date: Thu, 14 Apr 2005 15:52:55 +0000 (+0000) Subject: die on error X-Git-Tag: 5.7099_04~1536 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=f88238ea2dbb6336a33f17ed3c72ea9204a6556d;hp=af82dbf734add9f595ac01361c1b529aa5c981c0 die on error --- diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 2f4aa1f..0615253 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -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'; diff --git a/lib/Catalyst/Engine.pm b/lib/Catalyst/Engine.pm index a7f2e7b..6764524 100644 --- a/lib/Catalyst/Engine.pm +++ b/lib/Catalyst/Engine.pm @@ -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( {} );