diff --git a/protocols/bgp/packet/path_attributes.go b/protocols/bgp/packet/path_attributes.go
index e20fc48672d20de933b6efa3312382c55ea3f073..3d9e2a080f543667f8d95a170da318f1c2314a04 100644
--- a/protocols/bgp/packet/path_attributes.go
+++ b/protocols/bgp/packet/path_attributes.go
@@ -603,7 +603,7 @@ func read4BytesAsUin32(buf *bytes.Buffer) (uint32, error) {
 		return 0, err
 	}
 	if n != 4 {
-		return 0, fmt.Errorf("Unable to read next hop: buf.Read read %d bytes", n)
+		return 0, fmt.Errorf("Unable to read as uint32: buf.Read read %d bytes", n)
 	}
 
 	return fourBytesToUint32(b), nil