Update connect unauthorized message to give a bit more detail
This commit is contained in:
1 parent
8b39faef1b
commit
16f7dc1c96
1 file changed
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user