From a749c6ff897cc676f4792707c2704854a78960d3 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Wed, 26 Jan 2011 13:21:07 +0000 Subject: [PATCH] don't die on full-text update errors --- bin/BackupPC_updatedb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 $@; + } } } -- 2.20.1