don't die on full-text update errors
authorDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 26 Jan 2011 13:21:07 +0000 (13:21 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 26 Jan 2011 13:21:07 +0000 (13:21 +0000)
bin/BackupPC_updatedb

index a0d0069..8bf5041 100755 (executable)
@@ -588,7 +588,10 @@ foreach my $host_key (@hosts) {
                                fmt_time($dur)
                        );
 
-                       hest_update($hostID, $shareID, $backupNum) if ($nf + $nd > 0);
+                       if ($nf + $nd > 0) {
+                               eval { hest_update($hostID, $shareID, $backupNum) };
+                               warn "ERROR: $@" if $@;
+                       }
                }
 
        }