mirror of
https://github.com/garraflavatra/go-fmp.git
synced 2025-06-28 04:25:11 +00:00
Add error handling for processChunks
This commit is contained in:
@ -52,8 +52,12 @@ func OpenFile(path string) (*FmpFile, error) {
|
||||
}
|
||||
|
||||
ctx.Sectors = append(ctx.Sectors, sector)
|
||||
|
||||
if sector.ID != 0 {
|
||||
sector.processChunks(ctx.Dictionary, ¤tPath)
|
||||
err = sector.processChunks(ctx.Dictionary, ¤tPath)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
ctx.Chunks = append(ctx.Chunks, sector.Chunks...)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user