Index: trunk/tools/errors.pl
===================================================================
--- trunk/tools/errors.pl	(revision 28088)
+++ trunk/tools/errors.pl	(revision 28385)
@@ -78,4 +78,8 @@
     $label_table = "magicDSRun";
     $fault_table = "magicDSFile";
+} elsif ($stage eq "publish") {
+    $sql = "SELECT pub_id, client_id, hostname, path_base FROM publishRun JOIN publishDone USING(pub_id) WHERE fault != 0 AND state = 'new'";
+    $label_table = "publishRun";
+    $fault_table = "publishDone";
 } else {
     die "Unsupported stage: $stage\n";
