package cli import ( "fmt" "os" ) func HandleError(err error) { if err == nil { return } fmt.Fprintln(os.Stderr, err) os.Exit(1) }