1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-03 13:11:48 +02:00

improved init error output as well

This commit is contained in:
Carlos Alexandro Becker 2017-07-04 22:55:24 -03:00
parent c2e05c83b7
commit 59d5b3272d
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -72,8 +72,8 @@ func main() {
Action: func(c *cli.Context) error {
var filename = "goreleaser.yml"
if err := goreleaserlib.InitProject(filename); err != nil {
log.WithError(err).Error(err.Error())
return cli.NewExitError("aborted", 1)
log.WithError(err).Error("failed to init project")
return cli.NewExitError("\n", 1)
}
log.WithField("file", filename).