Index: trunk/PS-IPP-Config/lib/PS/IPP/Metadata/Stats.pm
===================================================================
--- trunk/PS-IPP-Config/lib/PS/IPP/Metadata/Stats.pm	(revision 8739)
+++ trunk/PS-IPP-Config/lib/PS/IPP/Metadata/Stats.pm	(revision 8740)
@@ -1,5 +1,5 @@
 # Copyright (c) 2006  Paul Price, Joshua Hoblitt
 #
-# $Id: Stats.pm,v 1.6 2006-09-06 01:47:38 jhoblitt Exp $
+# $Id: Stats.pm,v 1.7 2006-09-06 01:53:49 jhoblitt Exp $
 
 package PS::IPP::Metadata::Stats;
@@ -58,4 +58,7 @@
     my $self = shift;                # Where we'll put the information
     my $md = shift;                # Parsed metadata, from PS::IPP::Metadata::Config
+
+    # count of parse errors
+    my $errors = 0;
 
     # Descend the FPA hierarchy
@@ -109,4 +112,5 @@
             if (not defined $self->{data}->{$constant}->{value}) {
                 carp "Unable to find value for ", $constant, "\n";
+                $errors++;
             }
         }
@@ -121,4 +125,5 @@
             if (scalar @$array == 0) {
                 carp "Unable to find any values for ", $variable, "\n";
+                $errors++;
                 next;
             }
@@ -150,4 +155,9 @@
     }
 
+    if ($errors) {
+        carp "a total of $errors parse errors occured";
+        return;
+    }
+
     return $self;
 }
