mirror of
https://github.com/restic/restic.git
synced 2026-11-06 07:19:21 +00:00
forget: fix error handling if snapshot key cannot be marshaled
This commit is contained in:
1 parent
7d36449ea8
commit
6b88b072e0
1 file changed
+1
-1
@@ -262,7 +262,7 @@ func runForget(ctx context.Context, opts ForgetOptions, pruneOptions PruneOption
|
|||||||
}
|
}
|
||||||
|
|
||||||
var key data.SnapshotGroupKey
|
var key data.SnapshotGroupKey
|
||||||
if json.Unmarshal([]byte(k), &key) != nil {
|
if err := json.Unmarshal([]byte(k), &key); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user