From 35671135bdf0cbcfe3f5944b91afdd0fda1d9ee8 Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Thu, 10 Mar 2016 15:18:16 +0000 Subject: [PATCH] Return errors that happen inside WithNetNS --- common/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/utils.go b/common/utils.go index 5aa93219..63b7b5e2 100644 --- a/common/utils.go +++ b/common/utils.go @@ -39,7 +39,7 @@ func WithNetNS(ns netns.NsHandle, work func() error) error { } } - return nil + return err } type NetDev struct {