Merge pull request #3177 from MichaelEischer/fix-2759
prune: don't print stacktrace on console
This commit is contained in:
commit
35033d9b79
1 changed files with 2 additions and 2 deletions
|
@ -505,7 +505,7 @@ func prune(opts PruneOptions, gopts GlobalOptions, repo restic.Repository, usedB
|
||||||
_, err := repository.Repack(ctx, repo, repackPacks, keepBlobs, bar)
|
_, err := repository.Repack(ctx, repo, repackPacks, keepBlobs, bar)
|
||||||
bar.Done()
|
bar.Done()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return errors.Fatalf("%s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Also remove repacked packs
|
// Also remove repacked packs
|
||||||
|
@ -521,7 +521,7 @@ func prune(opts PruneOptions, gopts GlobalOptions, repo restic.Repository, usedB
|
||||||
if len(ignorePacks) != 0 {
|
if len(ignorePacks) != 0 {
|
||||||
err = rebuildIndexFiles(gopts, repo, ignorePacks, nil)
|
err = rebuildIndexFiles(gopts, repo, ignorePacks, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return errors.Fatalf("%s", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue