1
0
mirror of https://github.com/garraflavatra/go-fmp.git synced 2025-06-27 20:15:11 +00:00

Bad chunk error

This commit is contained in:
2025-06-13 12:55:56 +02:00
parent 7f42407c18
commit 55bf40b68d
2 changed files with 2 additions and 3 deletions

View File

@ -1,7 +1,5 @@
package fmp
import "fmt"
func (ctx *FmpFile) readChunk(payload []byte) (*FmpChunk, error) {
// Simple data
@ -228,5 +226,5 @@ func (ctx *FmpFile) readChunk(payload []byte) (*FmpChunk, error) {
}, nil
}
return nil, fmt.Errorf("unknown chunk type 0x%02X", payload[0])
return nil, ErrBadChunk
}

View File

@ -12,6 +12,7 @@ var (
ErrUnsupportedCharset = FmpError("unsupported character set")
ErrBadSectorCount = FmpError("bad sector count")
ErrBadSectorHeader = FmpError("bad sector header")
ErrBadChunk = FmpError("bad chunk")
)
const (