Skip to content

Commit

Permalink
Warn if a key doesn't match the 'argument_separator' (and move to the…
Browse files Browse the repository at this point in the history
… next loop iteration)
  • Loading branch information
rwstauner committed Dec 13, 2010
1 parent 043f6e2 commit fabe9bd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/Dist/Zilla/Role/Stash/Plugins.pm
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,13 @@ sub get_stashed_config {

while( my ($key, $value) = each %$config ){
my ($plug, $attr) = ($key =~ $splitter);

unless($plug && $attr){
$zilla->log("'$key' did not match $splitter. " .
"Do you need a more specific 'argument_separator'?");
next;
}

my $pack = $class->expand_package($plug);

$stashed->{$attr} = $value
Expand Down

0 comments on commit fabe9bd

Please sign in to comment.