Update error message to use login command

Unless I'm mistaken, when there is no existing token for an app, the `login` command needs to be run to obtain a token (not the `token` command, which itself doesn't generate a token).
This commit is contained in:
Security Generation 2020-11-18 15:15:54 +01:00 committed by GitHub
parent 029f7e0378
commit c2de08b4aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -299,7 +299,7 @@ func generateToken(c *cli.Context) error {
} }
tok, err := token.GetTokenIfExists(appURL) tok, err := token.GetTokenIfExists(appURL)
if err != nil || tok == "" { if err != nil || tok == "" {
fmt.Fprintln(os.Stderr, "Unable to find token for provided application. Please run token command to generate token.") fmt.Fprintln(os.Stderr, "Unable to find token for provided application. Please run login command to generate token.")
return err return err
} }