From: Eric Bollengier Date: Wed, 15 Feb 2023 16:30:56 +0000 (+0100) Subject: Fix #9876 Update information printed during file restore error X-Git-Tag: Release-13.0.2~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2169683fe48c9c345598fc7833751132ecb2a200;p=thirdparty%2Fbacula.git Fix #9876 Update information printed during file restore error --- diff --git a/bacula/src/dird/ua_restore.c b/bacula/src/dird/ua_restore.c index 382b2d338..d46fb5ddc 100644 --- a/bacula/src/dird/ua_restore.c +++ b/bacula/src/dird/ua_restore.c @@ -1293,9 +1293,9 @@ static bool insert_file_into_findex_list(UAContext *ua, RESTORE_CTX *rx, char *f rx->query, db_strerror(ua->db)); } if (!rx->found) { - ua->error_msg(_("No database record found for: %s\n"), file); + ua->error_msg(_("No database record found\n")); // ua->error_msg("Query=%s\n", rx->query); - return true; + return false; } return true; } @@ -1322,8 +1322,8 @@ static bool insert_dir_into_findex_list(UAContext *ua, RESTORE_CTX *rx, char *di rx->query, db_strerror(ua->db)); } if (!rx->found) { - ua->error_msg(_("No database record found for: %s\n"), dir); - return true; + ua->error_msg(_("No database record found\n")); + return false; } return true; }