From: Andy Grundman Date: Fri, 18 Nov 2005 14:14:13 +0000 (+0000) Subject: Added error message if using an invalid app name with helper (LTjake) X-Git-Tag: 5.7099_04~881 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=d997001bf47bf32c1ef1a628051f1ec7d1cb4664 Added error message if using an invalid app name with helper (LTjake) --- diff --git a/lib/Catalyst/Helper.pm b/lib/Catalyst/Helper.pm index 2c63481..4087584 100644 --- a/lib/Catalyst/Helper.pm +++ b/lib/Catalyst/Helper.pm @@ -60,7 +60,10 @@ sub mk_app { # Needs to be here for PAR require Catalyst; - return 0 if $name =~ /[^\w\:]/; + if ( $name =~ /[^\w\:]/ ) { + warn "Error: Invalid application name.\n"; + return 0; + } $self->{name} = $name; $self->{dir} = $name; $self->{dir} =~ s/\:\:/-/g;