projects
/
catagits/Catalyst-Runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
61bef23
)
Added error message if using an invalid app name with helper (LTjake)
Andy Grundman [Fri, 18 Nov 2005 14:14:13 +0000 (14:14 +0000)]
lib/Catalyst/Helper.pm
patch
|
blob
|
blame
|
history
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;