Skip to content
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.

Commit

Permalink
exit non-zero on parse error
Browse files Browse the repository at this point in the history
  • Loading branch information
sampointer committed Nov 7, 2019
1 parent 852648b commit da3ef04
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ func main() {
err := dy.Parse(os.Args[1])
if err != nil {
fmt.Fprintf(os.Stderr, "%v\n", err)
os.Exit(2)
} else {
fmt.Println(dy.Doc)
}
Expand Down

0 comments on commit da3ef04

Please sign in to comment.