Skip to content

Commit

Permalink
Added eval for check that may harmlessly fail
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanwills-optus committed Jan 19, 2016
1 parent 740861f commit 5aaba0f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lib/Data/Context/BEM.pm
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,15 @@ sub set_template_path {
$self->log->debug($block);
next if !$self->block_module($block);

my $dir = module_dir( $self->block_module($block) );
$self->log->info( 'module_dir ' . Dumper { $block => $dir } ) if $self->debug <= 2;
next if !$dir || !-d $dir;
eval {
my $dir = module_dir( $self->block_module($block) );
$self->log->info( 'module_dir ' . Dumper { $block => $dir } ) if $self->debug <= 2;
next if !$dir || !-d $dir;

push @paths, $dir;
push @paths, $dir;
};
}
push @paths, dist_dir('Data-Context-BEM');
push @paths, dist_dir('Data-Context-BEM');

# construct page extras
my @extras;
Expand Down

0 comments on commit 5aaba0f

Please sign in to comment.