Update connect unauthorized message to give a bit more detail

This commit is contained in:
Jeff Mitchell committed 2020-12-17 11:06:01 -05:00
1 parent 8b39faef1b
commit 16f7dc1c96
1 file changed
+1 -1
+1 -1
View File
@@ -662,7 +662,7 @@ func (c *Command) getWsConn(
if err != nil {
switch {
case strings.Contains(err.Error(), "tls: internal error"):
return nil, errors.New("Session is unauthorized")
return nil, errors.New("Session credentials were not accepted, or session is unauthorized")
case strings.Contains(err.Error(), "connect: connection refused"):
return nil, fmt.Errorf("Unable to connect to worker at %s", workerAddr)
default: