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

find: Print not found pack files

This commit is contained in:
Michael Eischer 2021-05-15 23:45:27 +02:00
parent 40745b4f82
commit 3caab3c7ac

View File

@ -4,6 +4,7 @@ import (
"context"
"encoding/json"
"fmt"
"sort"
"strings"
"time"
@ -446,7 +447,13 @@ func (f *Finder) packsToBlobs(ctx context.Context, packs []string) error {
}
if err != errorAllPacksFound {
return errors.Fatal("unable to find all specified pack(s)")
list := make([]string, 0, len(packIDs))
for h := range packIDs {
list = append(list, h)
}
sort.Strings(list)
return errors.Fatalf("unable to find pack(s): %v", list)
}
debug.Log("%d blobs found", len(f.blobIDs))