summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/dhcpv6.go
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv6/dhcpv6.go')
-rw-r--r--dhcpv6/dhcpv6.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv6/dhcpv6.go b/dhcpv6/dhcpv6.go
index 8addba2..45025ab 100644
--- a/dhcpv6/dhcpv6.go
+++ b/dhcpv6/dhcpv6.go
@@ -47,7 +47,7 @@ func MessageFromBytes(data []byte) (*Message, error) {
}
buf.ReadBytes(d.TransactionID[:])
if buf.Error() != nil {
- return nil, fmt.Errorf("Error parsing DHCPv6 header: %v", buf.Error())
+ return nil, fmt.Errorf("failed to parse DHCPv6 header: %w", buf.Error())
}
if err := d.Options.FromBytes(buf.Data()); err != nil {
return nil, err