chore(connect): improve messaging if tofu token already used (#3602)

pull/3604/head
Irena Rindos 3 years ago committed by GitHub
parent ee6803d106
commit df1e64f412
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -758,7 +758,7 @@ func (c *Command) runTcpProxyV1(
case strings.Contains(err.Error(), "tofu token not allowed"):
// Nothing will be able to be done here, so cancel the context too
c.proxyCancel()
return errors.New("Session is already in use")
return errors.New("Session token has already been used")
default:
return fmt.Errorf("error reading handshake result: %w", err)
}

Loading…
Cancel
Save