Skip to content

Commit

Permalink
Fix logging
Browse files Browse the repository at this point in the history
  • Loading branch information
dcondomitti committed Mar 18, 2019
1 parent 343db1a commit 708b705
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,10 @@ func parseConfigFile(c *cli.Context) error {
}

func handleError(c *cli.Context, err error) error {
fmt.Printf("An error has occurred (%s), ignoreErrors is set so exit code will be 0\n", err.Error())
fmt.Println(err.Error())

if c.GlobalBool("ignoreErrors") {
fmt.Println("ignoreErrors is set so exit code will be 0")
return nil
}

Expand Down

0 comments on commit 708b705

Please sign in to comment.