diff options
Diffstat (limited to 'dhcpv6/option_userclass.go')
-rw-r--r-- | dhcpv6/option_userclass.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv6/option_userclass.go b/dhcpv6/option_userclass.go index 643fdd1..8eeb3d7 100644 --- a/dhcpv6/option_userclass.go +++ b/dhcpv6/option_userclass.go @@ -42,7 +42,7 @@ func (op *OptUserClass) String() string { // input data does not include option code and length bytes. func (op *OptUserClass) FromBytes(data []byte) error { if len(data) == 0 { - return fmt.Errorf("user class option must not be empty") + return fmt.Errorf("%w: user class option must not be empty", uio.ErrBufferTooShort) } buf := uio.NewBigEndianBuffer(data) for buf.Has(2) { |