Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add engine name to log message on missing components and skip further…
… processing.
  • Loading branch information
racke committed Nov 2, 2010
1 parent f991155 commit de3cf18
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/WellWell/Compose.pm
Expand Up @@ -257,13 +257,15 @@ sub compose {
$component_content = $compobj->process($component_attributes);

unless (defined $component_content && $name ne 'local_body') {
::logError("Error processing component $name.");
::logError("Error processing component $name with $engine_name.");
Vend::Tags->error({name => 'component', set => "Error processing component $name."});
next;
}
}
elsif ($name ne 'local_body') {
::logError("Component $name not found");
::logError("Component $name not found for $engine_name.");
Vend::Tags->error({name => 'component', set => "Component $name not found."});
next;
}
}

Expand Down

0 comments on commit de3cf18

Please sign in to comment.