mirror of
https://github.com/garraflavatra/go-fmp.git
synced 2025-06-28 12:35:12 +00:00
Log unknown chunk types
This commit is contained in:
@ -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])
|
||||
}
|
||||
|
Reference in New Issue
Block a user