added $log->is_(debug|info|warn|error|fatal)
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Engine.pm
index 3e7cfbd..9c92866 100644 (file)
@@ -713,8 +713,9 @@ sub setup_components {
             $instance = $component->new( $context, $config );
         };
 
-        if ( $@ ) {
-            die qq/Couldn't instantiate component "$component", "$@"/;
+        if ( my $error = $@ ) {
+            chomp $error;
+            die qq/Couldn't instantiate component "$component", "$error"/;
         }
 
         return $instance;