1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-22 07:43:03 +00:00

prune: Don't print stack trace if snapshot can't be loaded

This commit is contained in:
Michael Eischer 2022-05-23 22:38:45 +02:00
parent 173695104c
commit c8e1ac4049

View file

@ -605,7 +605,7 @@ func getUsedBlobs(gopts GlobalOptions, repo restic.Repository, ignoreSnapshots r
return nil
})
if err != nil {
return nil, err
return nil, errors.Fatalf("failed loading snapshot: %v", err)
}
Verbosef("finding data that is still in use for %d snapshots\n", len(snapshotTrees))