hypo: use proper exit

This commit is contained in:
ipc 2023-05-30 14:35:21 +02:00
parent 380acbdc5f
commit 940d8d9293
1 changed files with 2 additions and 2 deletions

View File

@ -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)
}
}
}