use strict;
+use Catalyst::Exception;
use Catalyst::Utils;
use UNIVERSAL::require;
else {
$class->require;
- my $error = $UNIVERSAL::require::ERROR;
- die qq/Couldn't load "$class", "$error"/ if $@;
+
+ if ( $@ ) {
+
+ my $error = $UNIVERSAL::require::ERROR;
+
+ Catalyst::Exception->throw(
+ message => qq/Couldn't load "$class", "$error"/
+ );
+ }
$class->import;
=item remote_request
-Do an actual remote rquest using LWP.
+Do an actual remote request using LWP.
=cut