2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-23 05:12:10 +00:00

prune: reword missing blobs error

The previous wording could be understood such that the prune run did
damage the repository.
This commit is contained in:
Michael Eischer 2021-01-28 21:48:24 +01:00
parent 7b8886c052
commit 58b5679f14

View File

@ -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