Author: spadkins
Date: Mon Oct 23 08:32:37 2006
New Revision: 7960

Modified:
   p5ee/trunk/App-Widget-ChartDirector/lib/App/Widget/ChartDirector.pm

Log:
shorten/improve an error message

Modified: p5ee/trunk/App-Widget-ChartDirector/lib/App/Widget/ChartDirector.pm
==============================================================================
--- p5ee/trunk/App-Widget-ChartDirector/lib/App/Widget/ChartDirector.pm 
(original)
+++ p5ee/trunk/App-Widget-ChartDirector/lib/App/Widget/ChartDirector.pm Mon Oct 
23 08:32:37 2006
@@ -73,7 +73,12 @@
             $html = $self->write_graph_image($spec);
         };
         if ($@) {
-            $html .= "[Error creating graph image $spec->{image_path}: [EMAIL 
PROTECTED]";
+            if ($@ =~ /(no columns in graph)/) {
+                $html .= "[Error creating graph image, $1.]";
+            }
+            else { 
+                $html .= "[Error creating graph image $spec->{image_path}: 
[EMAIL PROTECTED]";
+            }
         }
     }
     if ($self->{debug}) {

Reply via email to