Skip to content

Commit

Permalink
improve error message
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo <[email protected]>
  • Loading branch information
lfaoro committed Jun 5, 2019
1 parent 453230b commit 68b50b2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/flares/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ func main() {

app.Action = func(c *cli.Context) error {
if flagAPIKey == "" || flagAPIEmail == "" {
return errors.New("provide --key & --email")
return errors.New(
"provide --key & --email flags\n" +
"or $CF_API_EMAIL & $CF_API_EMAIL" + " ENV variables\n" +
"in order to access CloudFlare.\n\n" +
"GOTO: https://dash.cloudflare.com/profile -> Global API Key -> View")
}

dns := cloudflare.New(flagAPIKey, flagAPIEmail)
Expand Down

0 comments on commit 68b50b2

Please sign in to comment.