Skip to content

Commit

Permalink
die, when switching to/use a lib that does not exist.
Browse files Browse the repository at this point in the history
bug ref: #432
  • Loading branch information
gugod committed Feb 25, 2015
1 parent f49a908 commit 4ac3f9a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/App/perlbrew.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1592,6 +1592,10 @@ sub perlbrew_env {
unless ($perl_name) {
die "\nERROR: The installation \"$name\" is unknown.\n\n";
}

unless (grep { $_->{lib_name} eq $lib_name } $self->local_libs($perl_name)) {
die "\nERROR: The lib name \"$lib_name\" is unknown.\n\n";
}
}

my %env = (
Expand Down

0 comments on commit 4ac3f9a

Please sign in to comment.