1
0
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:
2025-06-13 20:40:34 +02:00
parent ae32067c68
commit 193f23a20c
2 changed files with 13 additions and 4 deletions

View File

@ -52,8 +52,12 @@ func OpenFile(path string) (*FmpFile, error) {
}
ctx.Sectors = append(ctx.Sectors, sector)
if sector.ID != 0 {
sector.processChunks(ctx.Dictionary, &currentPath)
err = sector.processChunks(ctx.Dictionary, &currentPath)
if err != nil {
return nil, err
}
ctx.Chunks = append(ctx.Chunks, sector.Chunks...)
}