hypo: use proper exit
This commit is contained in:
parent
380acbdc5f
commit
940d8d9293
|
@ -10,7 +10,7 @@ import (
|
||||||
func main() {
|
func main() {
|
||||||
if len(os.Args) < 2 {
|
if len(os.Args) < 2 {
|
||||||
fmt.Printf("usage: %s file\n", os.Args[0])
|
fmt.Printf("usage: %s file\n", os.Args[0])
|
||||||
return
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
buf, err := os.ReadFile(os.Args[1])
|
buf, err := os.ReadFile(os.Args[1])
|
||||||
|
@ -29,7 +29,7 @@ func main() {
|
||||||
if err := c.Step(); err != nil {
|
if err := c.Step(); err != nil {
|
||||||
fmt.Printf("fatal: %s\n\n", err)
|
fmt.Printf("fatal: %s\n\n", err)
|
||||||
c.WriteTrace(os.Stdout)
|
c.WriteTrace(os.Stdout)
|
||||||
break
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue