Index: trunk/tools/errors.pl
===================================================================
--- trunk/tools/errors.pl	(revision 27243)
+++ trunk/tools/errors.pl	(revision 27244)
@@ -57,5 +57,5 @@
     $table = "warpSkyfile";
 } elsif ($stage eq "magic") {
-    $sql = "SELECT magic_id, node, 'unknown' AS hostname, CONCAT(workdir, '.', node) FROM magicRun JOIN magicNodeResult USING(magic_id) WHERE magicNodeResult.fault != 0";
+    $sql = "SELECT magic_id, node, 'unknown' AS hostname, CONCAT(workdir, '/', exp_id, '/', exp_id, '.', node) FROM magicRun JOIN magicNodeResult USING(magic_id) WHERE magicNodeResult.fault != 0";
     $table = "magicNodeResult";
 } else {
@@ -102,5 +102,8 @@
     if ($log =~ /^neb:/) {
         my $new = eval { $neb->find($log); };
-        $bad{$name} = $log unless $new;
+        unless ($new) {
+            $bad{$name} = $log;
+            next;
+        }
         $log = $new;
     }
@@ -108,4 +111,8 @@
     my $file;                   # Log file
     open $file, $log;
+    unless ($file) {
+        $bad{$name} = $log;
+        next;
+    }
     my @log = <$file>;          # Contents of log file
     close $file;
