Skip to content

Commit

Permalink
Exit on error in the end
Browse files Browse the repository at this point in the history
  • Loading branch information
zakjan committed Jun 2, 2016
1 parent 05d1f61 commit c222fb5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,12 @@ func main() {
}

err := run(inputFilename, outputFilename, outputIntermediateOnly, outputDerFormat, includeSystem)
if err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
return err
}

return nil
err := app.Run(os.Args)
if err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
app.Run(os.Args)
}

0 comments on commit c222fb5

Please sign in to comment.