[wellwell-devel] [wellwell/zoom] Add engine name to log message on missing components and skip further processing.
Stefan Hornburg
wellwell-devel at rt.icdevgroup.org
Tue Nov 2 15:54:34 UTC 2010
commit de3cf186545bf0b53e96ab289ab3b35ae8a11219
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date: Tue Nov 2 16:52:11 2010 +0100
Add engine name to log message on missing components and skip further processing.
lib/WellWell/Compose.pm | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/lib/WellWell/Compose.pm b/lib/WellWell/Compose.pm
index 21f27b8..81a17c9 100644
--- a/lib/WellWell/Compose.pm
+++ b/lib/WellWell/Compose.pm
@@ -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;
}
}
More information about the wellwell-devel
mailing list