From 940d8d9293537a3d43a8df69d31fc4e606a5afdb Mon Sep 17 00:00:00 2001 From: ipc Date: Tue, 30 May 2023 14:35:21 +0200 Subject: [PATCH] hypo: use proper exit --- cmd/hypo/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/hypo/main.go b/cmd/hypo/main.go index 4dc11cc..b1b1350 100644 --- a/cmd/hypo/main.go +++ b/cmd/hypo/main.go @@ -10,7 +10,7 @@ import ( func main() { if len(os.Args) < 2 { fmt.Printf("usage: %s file\n", os.Args[0]) - return + os.Exit(1) } buf, err := os.ReadFile(os.Args[1]) @@ -29,7 +29,7 @@ func main() { if err := c.Step(); err != nil { fmt.Printf("fatal: %s\n\n", err) c.WriteTrace(os.Stdout) - break + os.Exit(1) } } }