2
2
mirror of https://github.com/octoleo/restic.git synced 2024-05-29 07:00:49 +00:00

Panic on error saving blobs

This commit is contained in:
Alexander Neumann 2014-11-29 10:52:06 +01:00
parent b320106198
commit bbaba349b2

View File

@ -343,7 +343,10 @@ func (arch *Archiver) saveTree(t *Tree) (Blob, error) {
}()
// TODO: handle error
arch.SaveFile(n)
err := arch.SaveFile(n)
if err != nil {
panic(err)
}
arch.update(arch.SaveStats, Stats{Files: 1})
}(node)
} else {