mirror of
https://github.com/restic/restic.git
synced 2026-10-14 05:57:12 +00:00
Add more error handling
This commit is contained in:
1 parent
aef3658a5f
commit
0858fbf6aa
23 files changed
+91
-36
No files matched your search
@@ -39,7 +39,8 @@ func newPack(t testing.TB, k *crypto.Key, lengths []int) ([]Buf, []byte, uint) {
|
||||
var buf bytes.Buffer
|
||||
p := pack.NewPacker(k, &buf)
|
||||
for _, b := range bufs {
|
||||
p.Add(restic.TreeBlob, b.id, b.data)
|
||||
_, err := p.Add(restic.TreeBlob, b.id, b.data)
|
||||
rtest.OK(t, err)
|
||||
}
|
||||
|
||||
_, err := p.Finalize()
|
||||
|
||||
Reference in new issue
Block a user