From 2d3404134d5af0f3475dff5cabff3591fff23603 Mon Sep 17 00:00:00 2001 From: Alif Rachmawadi Date: Sun, 9 Apr 2017 23:26:28 +0700 Subject: [PATCH] use proper exit code using error --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 7bb5b399..419c69d3 100644 --- a/main.go +++ b/main.go @@ -298,7 +298,7 @@ func validate(c *cli.Context, input string, lineNum bool) error { } w.Flush() - fmt.Fprintln(c.App.Writer, buf.String()) + return errors.New(buf.String()) } return nil