Skip to content
This repository has been archived by the owner on Jan 15, 2022. It is now read-only.

Commit

Permalink
use proper exit code using error
Browse files Browse the repository at this point in the history
  • Loading branch information
Alif Rachmawadi committed Apr 9, 2017
1 parent bf94696 commit 2d34041
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2d34041

Please sign in to comment.