Panic on error saving blobs
This commit is contained in:
parent
b320106198
commit
bbaba349b2
1 changed files with 4 additions and 1 deletions
|
@ -343,7 +343,10 @@ func (arch *Archiver) saveTree(t *Tree) (Blob, error) {
|
||||||
}()
|
}()
|
||||||
|
|
||||||
// TODO: handle error
|
// TODO: handle error
|
||||||
arch.SaveFile(n)
|
err := arch.SaveFile(n)
|
||||||
|
if err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
arch.update(arch.SaveStats, Stats{Files: 1})
|
arch.update(arch.SaveStats, Stats{Files: 1})
|
||||||
}(node)
|
}(node)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue