Index: trunk/tools/errors.pl
===================================================================
--- trunk/tools/errors.pl	(revision 28451)
+++ trunk/tools/errors.pl	(revision 28453)
@@ -82,4 +82,8 @@
     $label_table = "publishRun";
     $fault_table = "publishDone";
+} elsif ($stage eq "diffphot") {
+    $sql = "SELECT diff_phot_id, skycell_id, hostname, path_base FROM diffPhotRun JOIN diffPhotSkyfile USING(diff_phot_id) WHERE fault != 0 AND state = 'new'";
+    $label_table = "diffPhotRun";
+    $fault_table = "diffPhotSkycell";
 } else {
     die "Unsupported stage: $stage\n";
