[Bps-public-commit] r10621 - bpsbuilder/Shipwright/lib/Shipwright
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Thu Jan 31 11:24:53 EST 2008
Author: sunnavy
Date: Thu Jan 31 11:24:52 2008
New Revision: 10621
Modified:
bpsbuilder/Shipwright/lib/Shipwright/Config.pm
Log:
croak if provided an invalid project name
Modified: bpsbuilder/Shipwright/lib/Shipwright/Config.pm
==============================================================================
--- bpsbuilder/Shipwright/lib/Shipwright/Config.pm (original)
+++ bpsbuilder/Shipwright/lib/Shipwright/Config.pm Thu Jan 31 11:24:52 2008
@@ -51,7 +51,12 @@
$self->load( $args{config} );
if ( $args{name} ) {
- $self->name( $self->stash->{ $args{name} } );
+ if ( $self->stash->{$args{name}} ) {
+ $self->name( $self->stash->{ $args{name} } );
+ }
+ else {
+ croak "invalid prject name: $args{name}";
+ }
}
return $self;
More information about the Bps-public-commit
mailing list