mirror of
https://github.com/restic/restic.git
synced 2026-10-06 19:00:30 +00:00
repository: show correct error if zstd decoder cannot be initialized
This commit is contained in:
1 parent
c21f0fabc6
commit
8ee674da55
1 file changed
+1
-1
@@ -253,7 +253,7 @@ func (c *Checker) ReadPacks(ctx context.Context, filter func(packs map[restic.ID
|
||||
bufRd := bufio.NewReaderSize(nil, maxStreamBufferSize)
|
||||
dec, err := zstd.NewReader(nil)
|
||||
if err != nil {
|
||||
panic(dec)
|
||||
panic(err)
|
||||
}
|
||||
defer dec.Close()
|
||||
for {
|
||||
|
||||
Reference in new issue
Block a user