From ade1c6e06e46ce80ff77cd2c74ca2079934f39d6 Mon Sep 17 00:00:00 2001 From: gutmet Date: Mon, 27 Apr 2020 20:13:22 +0200 Subject: [PATCH] better error message for unknown byte field size --- laymanshex.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/laymanshex.go b/laymanshex.go index 21d1f88..bece35c 100644 --- a/laymanshex.go +++ b/laymanshex.go @@ -178,9 +178,9 @@ func (part *filePart) setByteFieldHandling(assignments map[string]*formatAssignm ass.used = true err = nil } else { - msg := "byte field: could neither parse size to int64 nor obtain value from -fvar" + msg := "byte field definition in format description: could neither parse size to int64 nor obtain value from -fvar" if part.name != "" { - msg += " definition " + part.name + msg += " - definition of " + part.name } err = errors.New(msg) }