Add hint why a quick tunnel isn't working if config.yaml is present

This commit is contained in:
Keavon Chambers 2022-10-18 23:46:38 -07:00 committed by GitHub
parent 11f4d10174
commit 2334257438
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ func TunnelCommand(c *cli.Context) error {
return runAdhocNamedTunnel(sc, name, c.String(CredFileFlag))
}
if ref := config.GetConfiguration().TunnelID; ref != "" {
return fmt.Errorf("Use `cloudflared tunnel run` to start tunnel %s", ref)
return fmt.Errorf("Use `cloudflared tunnel run` to start tunnel %s. If you are trying to start a TryCloudflare quick tunnel, the `config.yaml` file must not be present (consider temporarily renaming it).", ref)
}
// Unauthenticated named tunnel on <random>.<quick-tunnels-service>.com