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

This commit is contained in:
Irena Rindos authored and GitHub committed 2023-08-17 08:59:17 -04:00
1 parent ee6803d106
commit df1e64f412
1 file changed
+1 -1
+1 -1
View File
@@ -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)
}