projects
/
catagits/Catalyst-Runtime.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Added error message if using an invalid app name with helper (LTjake)
[catagits/Catalyst-Runtime.git]
/
lib
/
Catalyst
/
Helper.pm
diff --git
a/lib/Catalyst/Helper.pm
b/lib/Catalyst/Helper.pm
index
2c63481
..
4087584
100644
(file)
--- 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;