Index: trunk/tools/errors.pl
===================================================================
--- trunk/tools/errors.pl	(revision 28453)
+++ trunk/tools/errors.pl	(revision 28540)
@@ -86,4 +86,12 @@
     $label_table = "diffPhotRun";
     $fault_table = "diffPhotSkycell";
+} elsif ($stage eq "chip_bg") {
+    $sql = "SELECT chip_bg_id, class_id, hostname, path_base FROM chipBackgroundRun JOIN chipBackgroundImfile USING(chip_bg_id) WHERE fault != 0 AND state = 'new'";
+    $label_table = "chipBackgroundRun";
+    $fault_table = "chipBackgroundImfile";
+} elsif ($stage eq "warp_bg") {
+    $sql = "SELECT warp_bg_id, skycell_id, hostname, path_base FROM warpBackgroundRun JOIN warpBackgroundSkyfile USING(warp_bg_id) WHERE fault != 0 AND state = 'new'";
+    $label_table = "warpBackgroundRun";
+    $fault_table = "warpBackgroundSkyfile";
 } else {
     die "Unsupported stage: $stage\n";
