Ignore ErrUnexpectedEOF for io.ReadFull

This commit is contained in:
Alexander Neumann 2014-11-23 21:49:57 +01:00
parent ba20ed6ef7
commit b1923063fe
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ func (arch *Archiver) SaveFile(node *Node) error {
buf := GetChunkBuf("blob single file")
defer FreeChunkBuf("blob single file", buf)
n, err := io.ReadFull(file, buf)
if err != nil {
if err != nil && err != io.ErrUnexpectedEOF {
return err
}