Commit a7889497 authored by Brad Davidson's avatar Brad Davidson Committed by Brad Davidson

Add context to agent token validation error

Signed-off-by: 's avatarBrad Davidson <brad.davidson@rancher.com> (cherry picked from commit c11c06ca) Signed-off-by: 's avatarBrad Davidson <brad.davidson@rancher.com>
parent c2662fbe
......@@ -351,7 +351,7 @@ func createProxyAndValidateToken(ctx context.Context, cfg *cmds.Agent) (proxy.Pr
for {
newToken, err := clientaccess.ParseAndValidateToken(proxy.SupervisorURL(), cfg.Token, options...)
if err != nil {
logrus.Error(err)
logrus.Errorf("Failed to validate connection to cluster at %s: %v", cfg.ServerURL, err)
select {
case <-ctx.Done():
return nil, ctx.Err()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment