From bae07b6ea2c29d113b21edcbcfbabd4e15296d60 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Tue, 14 Mar 2023 17:35:17 +0100 Subject: [PATCH] podman-mac-helper: exit 1 on error We should return a proper exit code to signal the failure. [NO NEW TESTS NEEDED] We do have any tests on macOS. Fixes #17785 Signed-off-by: Paul Holzinger --- cmd/podman-mac-helper/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/podman-mac-helper/main.go b/cmd/podman-mac-helper/main.go index ef57341bcd..d3e5310929 100644 --- a/cmd/podman-mac-helper/main.go +++ b/cmd/podman-mac-helper/main.go @@ -53,6 +53,7 @@ func main() { if err := rootCmd.Execute(); err != nil { fmt.Fprintf(os.Stderr, "Error: %s\n", err.Error()) + os.Exit(1) } }