From 6f3622be92cc34ea21dd726ef2360006bd89b4f6 Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Fri, 13 Jun 2025 10:26:30 +0200 Subject: [PATCH] Log unknown chunk types --- fmp/fmp_chunk.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fmp/fmp_chunk.go b/fmp/fmp_chunk.go index f9d9f03..a0babd0 100644 --- a/fmp/fmp_chunk.go +++ b/fmp/fmp_chunk.go @@ -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]) }