diff options
-rw-r--r-- | dhcpv6/options.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dhcpv6/options.go b/dhcpv6/options.go index e4e9b8b..2c5842c 100644 --- a/dhcpv6/options.go +++ b/dhcpv6/options.go @@ -56,8 +56,8 @@ func ParseOption(dataStart []byte) (Option, error) { code := OptionCode(binary.BigEndian.Uint16(dataStart[:2])) length := int(binary.BigEndian.Uint16(dataStart[2:4])) if len(dataStart) < length+4 { - return nil, fmt.Errorf("Invalid option length. Declared %v, actual %v", - length, len(dataStart)-4, + return nil, fmt.Errorf("Invalid option length for option %v. Declared %v, actual %v", + code, length, len(dataStart)-4, ) } var ( |