From 8ee8f847340c3ac2264e183655fb7cdcbbfbb2cd Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Tue, 26 Jun 2018 19:33:52 +0200 Subject: container_internal: don't ignore error from cleanupNetwork() Signed-off-by: Giuseppe Scrivano Closes: #1002 Approved by: rhatdan --- libpod/container_internal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpod') diff --git a/libpod/container_internal.go b/libpod/container_internal.go index 1985bb141..6531d5de0 100644 --- a/libpod/container_internal.go +++ b/libpod/container_internal.go @@ -923,7 +923,7 @@ func (c *Container) cleanup() error { // Clean up network namespace, if present if err := c.cleanupNetwork(); err != nil { - lastError = nil + lastError = err } if err := c.cleanupCgroups(); err != nil { -- cgit v1.2.3-54-g00ecf