mirror of
https://github.com/restic/restic.git
synced 2025-08-12 11:27:46 +00:00
Panic on error saving blobs
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user