better error message for unknown byte field size
This commit is contained in:
parent
a611f9fd7c
commit
ade1c6e06e
|
@ -178,9 +178,9 @@ func (part *filePart) setByteFieldHandling(assignments map[string]*formatAssignm
|
||||||
ass.used = true
|
ass.used = true
|
||||||
err = nil
|
err = nil
|
||||||
} else {
|
} 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 != "" {
|
if part.name != "" {
|
||||||
msg += " definition " + part.name
|
msg += " - definition of " + part.name
|
||||||
}
|
}
|
||||||
err = errors.New(msg)
|
err = errors.New(msg)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user