From 58b5679f147cc197baeedc873a7041e162b33edb Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Thu, 28 Jan 2021 21:48:24 +0100 Subject: [PATCH] prune: reword missing blobs error The previous wording could be understood such that the prune run did damage the repository. --- cmd/restic/cmd_prune.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/restic/cmd_prune.go b/cmd/restic/cmd_prune.go index 19cd4c525..6f7e1874c 100644 --- a/cmd/restic/cmd_prune.go +++ b/cmd/restic/cmd_prune.go @@ -245,8 +245,9 @@ func prune(opts PruneOptions, gopts GlobalOptions, repo restic.Repository, usedB // Check if all used blobs have been found in index if len(usedBlobs) != 0 { - Warnf("%v not found in the index\n"+ - "Data blobs seem to be missing, aborting prune to prevent further data loss!\n"+ + Warnf("%v not found in the index\n\n"+ + "Integrity check failed: Data seems to be missing.\n"+ + "Will not start prune to prevent (additional) data loss!\n"+ "Please report this error (along with the output of the 'prune' run) at\n"+ "https://github.com/restic/restic/issues/new/choose", usedBlobs) return errorIndexIncomplete