Fix dropped error (#240)
Signed-off-by: Lars Lehtonen <lars.lehtonen@gmail.com>
This commit is contained in:
parent
d27cc52f15
commit
6a61933ab7
4
set.go
4
set.go
|
@ -567,7 +567,9 @@ func (cc *Conn) AddSet(s *Set, vals []SetElement) error {
|
||||||
descSize, err := netlink.MarshalAttributes([]netlink.Attribute{
|
descSize, err := netlink.MarshalAttributes([]netlink.Attribute{
|
||||||
{Type: unix.NFTA_SET_DESC_SIZE, Data: valData},
|
{Type: unix.NFTA_SET_DESC_SIZE, Data: valData},
|
||||||
})
|
})
|
||||||
|
if err != nil {
|
||||||
|
return fmt.Errorf("fail to marshal base type size description: %w", err)
|
||||||
|
}
|
||||||
concatDefinition = append(concatDefinition, descSize...)
|
concatDefinition = append(concatDefinition, descSize...)
|
||||||
}
|
}
|
||||||
// Marshal all base type descriptions into concatenation size description
|
// Marshal all base type descriptions into concatenation size description
|
||||||
|
|
Loading…
Reference in New Issue