Merge pull request #1778 from restic/fix-1771

archiver: Improve error handling
This commit is contained in:
Alexander Neumann
2018-05-13 00:13:54 +02:00
10 changed files with 587 additions and 57 deletions

View File

@@ -467,7 +467,7 @@ func runBackup(opts BackupOptions, gopts GlobalOptions, term *termstatus.Termina
p.V("start backup on %v", targets)
_, id, err := arch.Snapshot(gopts.ctx, targets, snapshotOpts)
if err != nil {
return err
return errors.Fatalf("unable to save snapshot: %v", err)
}
p.Finish()