fix possible error case
This commit is contained in:
@@ -33,6 +33,8 @@ func (f *Filer) appendToFile(targetFile string, data []byte) error {
|
|||||||
Gid: OS_GID,
|
Gid: OS_GID,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
} else if err != nil {
|
||||||
|
return fmt.Errorf("find %s: %v", fullpath, err)
|
||||||
} else {
|
} else {
|
||||||
offset = int64(TotalSize(entry.Chunks))
|
offset = int64(TotalSize(entry.Chunks))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user