backup: Add fatal if dest snapshot failed

Errors are currently silently swallowed
This commit is contained in:
Owen Smith 2014-11-25 13:57:47 +00:00
parent e3cb3d640b
commit 9974bf0291

View File

@ -58,7 +58,9 @@ func handleBackup(c *cli.Context) {
if snapshot != nil {
index = snapshot.Index
newss := snap.New(destSnap)
newss.SaveSnap(*snapshot)
if err := newss.SaveSnap(*snapshot); err != nil {
log.Fatal(err)
}
}
w, err := wal.OpenAtIndex(srcWAL, index)