From a09c2a7225540448fb5339dd407fb6c4899e77f7 Mon Sep 17 00:00:00 2001 From: "Joel D. Elkins" Date: Wed, 20 Jul 2022 21:42:57 -0500 Subject: [PATCH] Add some warings on create if things don't look right --- internal/pkg/container/container.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/pkg/container/container.go b/internal/pkg/container/container.go index b2325d7..f92e242 100644 --- a/internal/pkg/container/container.go +++ b/internal/pkg/container/container.go @@ -72,6 +72,12 @@ func (c *Container) CreateCommands() []command.Command { if len(c.createCommands) == 0 { c.initCommands() } + if c.Arguments == "" { + fmt.Fprintf(os.Stderr, "Warning: Container %s does not have arguments defined! That's unusual", c.Name) + } + if c.Image == "" { + fmt.Fprintf(os.Stderr, "Error: Container %s does not have an image defined!", c.Name) + } return c.createCommands }