mirror of
https://github.com/octoleo/restic.git
synced 2025-01-22 14:48:24 +00:00
Merge pull request #3253 from restic/improve-prune-error
prune: Improve error message for missing files
This commit is contained in:
commit
b8550a21f2
@ -383,7 +383,10 @@ func prune(opts PruneOptions, gopts GlobalOptions, repo restic.Repository, usedB
|
||||
}
|
||||
|
||||
if len(indexPack) != 0 {
|
||||
Warnf("The index references needed pack files which are missing from the repository: %v\n", indexPack)
|
||||
Warnf("The index references %d needed pack files which are missing from the repository:\n", len(indexPack))
|
||||
for id := range indexPack {
|
||||
Warnf(" %v\n", id)
|
||||
}
|
||||
return errorPacksMissing
|
||||
}
|
||||
if len(ignorePacks) != 0 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user