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
1 changed files with 1 additions and 1 deletions

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))