From: Tom Bloor Date: Sun, 21 Dec 2014 19:32:55 +0000 (+0000) Subject: Better error message on bad _raw_page_plugins X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e244a00720be40ad658cd098109a8fdc1aa42948;p=scpubgit%2FApp-SCS.git Better error message on bad _raw_page_plugins --- diff --git a/lib/App/SCS/Page.pm b/lib/App/SCS/Page.pm index 0099055..d7162a9 100644 --- a/lib/App/SCS/Page.pm +++ b/lib/App/SCS/Page.pm @@ -46,6 +46,7 @@ has _raw_page_plugins => (is => 'lazy', builder => sub { my @plugins; while (my ($name, $config) = splice @spec, 0, 2) { my $info = $plugin_map->{$name}; + die "No class for plugin name ${name}" unless $info->{class}; push @plugins, use_module($info->{class})->new( ($info->{config}||sub{})->(), %$config, page => $self,