mirror of
https://github.com/octoleo/restic.git
synced 2024-11-26 23:06:32 +00:00
find: Print not found pack files
This commit is contained in:
parent
40745b4f82
commit
3caab3c7ac
@ -4,6 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@ -446,7 +447,13 @@ func (f *Finder) packsToBlobs(ctx context.Context, packs []string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if err != errorAllPacksFound {
|
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))
|
debug.Log("%d blobs found", len(f.blobIDs))
|
||||||
|
Loading…
Reference in New Issue
Block a user