From a4f185fd28fc9cc22a72b1c7b2da913d35930ba9 Mon Sep 17 00:00:00 2001 From: Security Generation <1046239+securitygeneration@users.noreply.github.com> Date: Wed, 18 Nov 2020 15:15:54 +0100 Subject: [PATCH] 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). --- cmd/cloudflared/access/cmd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cloudflared/access/cmd.go b/cmd/cloudflared/access/cmd.go index c37e3232..f9049c69 100644 --- a/cmd/cloudflared/access/cmd.go +++ b/cmd/cloudflared/access/cmd.go @@ -291,7 +291,7 @@ func generateToken(c *cli.Context) error { } tok, err := token.GetAppTokenIfExists(appURL) 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 }