From 59e31361d8ae5a13b35aca4f2f2bf6582f630c19 Mon Sep 17 00:00:00 2001 From: Cyb3r-Jak3 Date: Tue, 21 Jan 2025 23:40:01 -0500 Subject: [PATCH] Keep invalid tunnel token error message the same --- cmd/cloudflared/tunnel/subcommands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cloudflared/tunnel/subcommands.go b/cmd/cloudflared/tunnel/subcommands.go index 0c49e3e7..d2b10bb1 100644 --- a/cmd/cloudflared/tunnel/subcommands.go +++ b/cmd/cloudflared/tunnel/subcommands.go @@ -669,7 +669,7 @@ func runCommand(c *cli.Context) error { } tokenStr = strings.TrimSpace(string(data)) if _, err := ParseToken(tokenStr); err != nil { - return cliutil.UsageError("Failed to parse token file: " + err.Error()) + return cliutil.UsageError("Provided Tunnel token is not valid") } } }