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