better error message for unknown byte field size

This commit is contained in:
gutmet 2020-04-27 20:13:22 +02:00
parent a611f9fd7c
commit ade1c6e06e

View File

@ -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)
}