mirror of
https://github.com/octoleo/restic.git
synced 2024-11-13 00:36:35 +00:00
find: Print not found pack files
This commit is contained in:
parent
40745b4f82
commit
3caab3c7ac
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user