X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FEngine.pm;h=9c928660d1bc67ab655b3fd53869804951491592;hp=3e7cfbda39c153034a8bf18b9229cfb72398ac7e;hb=846772b73d4b1d0791afaf29d1b271eaccb42de1;hpb=a268a0112398ac10d8fabd86ed28a183cbe4398e diff --git a/lib/Catalyst/Engine.pm b/lib/Catalyst/Engine.pm index 3e7cfbd..9c92866 100644 --- a/lib/Catalyst/Engine.pm +++ b/lib/Catalyst/Engine.pm @@ -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;