1
0
mirror of https://github.com/garraflavatra/go-fmp.git synced 2025-06-28 04:25:11 +00:00

Log unknown chunk types

This commit is contained in:
2025-06-13 10:26:30 +02:00
parent 7fa7a3787d
commit 6f3622be92

View File

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