From: Dobrica Pavlinusic Date: Wed, 26 Jan 2011 13:21:07 +0000 (+0000) Subject: don't die on full-text update errors X-Git-Url: http://git.rot13.org//?a=commitdiff_plain;h=a749c6ff897cc676f4792707c2704854a78960d3;p=BackupPC.git don't die on full-text update errors --- diff --git a/bin/BackupPC_updatedb b/bin/BackupPC_updatedb index a0d0069..8bf5041 100755 --- a/bin/BackupPC_updatedb +++ b/bin/BackupPC_updatedb @@ -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 $@; + } } }