2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-23 03:18:55 +00:00

Merge pull request #3177 from MichaelEischer/fix-2759

prune: don't print stacktrace on console
This commit is contained in:
MichaelEischer 2021-01-28 20:28:45 +01:00 committed by GitHub
commit 35033d9b79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -505,7 +505,7 @@ func prune(opts PruneOptions, gopts GlobalOptions, repo restic.Repository, usedB
_, err := repository.Repack(ctx, repo, repackPacks, keepBlobs, bar)
bar.Done()
if err != nil {
return err
return errors.Fatalf("%s", err)
}
// Also remove repacked packs
@ -521,7 +521,7 @@ func prune(opts PruneOptions, gopts GlobalOptions, repo restic.Repository, usedB
if len(ignorePacks) != 0 {
err = rebuildIndexFiles(gopts, repo, ignorePacks, nil)
if err != nil {
return err
return errors.Fatalf("%s", err)
}
}