Update knftables to v0.0.16
Signed-off-by: Nadia Pinaeva <n.m.pinaeva@gmail.com>
This commit is contained in:
3
vendor/sigs.k8s.io/knftables/error.go
generated
vendored
3
vendor/sigs.k8s.io/knftables/error.go
generated
vendored
@@ -33,7 +33,8 @@ type nftablesError struct {
|
||||
// wrapError wraps an error resulting from running nft
|
||||
func wrapError(err error) error {
|
||||
nerr := &nftablesError{wrapped: err, msg: err.Error()}
|
||||
if ee, ok := err.(*exec.ExitError); ok {
|
||||
ee := &exec.ExitError{}
|
||||
if errors.As(err, &ee) {
|
||||
if len(ee.Stderr) > 0 {
|
||||
nerr.msg = string(ee.Stderr)
|
||||
eol := strings.Index(nerr.msg, "\n")
|
||||
|
||||
Reference in New Issue
Block a user