aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgutmet <me.git@gutmet.org>2020-04-27 20:13:22 +0200
committergutmet <me.git@gutmet.org>2020-04-27 20:13:22 +0200
commitade1c6e06e46ce80ff77cd2c74ca2079934f39d6 (patch)
tree378a8306ae51dc718fb4330e94c480dfd43302a5
parenta611f9fd7cd971ab4ebf04e3fa76377af442e992 (diff)
downloadlaymanshex-ade1c6e06e46ce80ff77cd2c74ca2079934f39d6.tar.gz
better error message for unknown byte field size
-rw-r--r--laymanshex.go4
1 files 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)
}