From 594a75670422d87238273d1b1e17ffadf961256c Mon Sep 17 00:00:00 2001 From: Mark McGranaghan Date: Tue, 16 Oct 2012 10:33:56 -0700 Subject: [PATCH] more familiar exit code --- examples/line-filters/line-filters.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/line-filters/line-filters.go b/examples/line-filters/line-filters.go index 2edec12..a941f38 100644 --- a/examples/line-filters/line-filters.go +++ b/examples/line-filters/line-filters.go @@ -38,7 +38,7 @@ func main() { ucl := strings.ToUpper(line) if _, err = out.WriteString(ucl); err != nil { log.Println(err) - os.Exit(-1) + os.Exit(1) } // The `EOF` error is expected when we reach the @@ -50,7 +50,7 @@ func main() { // error and exit with non-zero status. default: log.Println(err) - os.Exit(-1) + os.Exit(1) } } }