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:
parent
cf562ef8c8
commit
a4f185fd28
|
@ -291,7 +291,7 @@ func generateToken(c *cli.Context) error {
|
||||||
}
|
}
|
||||||
tok, err := token.GetAppTokenIfExists(appURL)
|
tok, err := token.GetAppTokenIfExists(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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue