fix(agent): log correct error variable in createTailnet (#17283)

This commit is contained in:
Aaron Lehmann
2025-04-07 09:32:52 -07:00
committed by GitHub
parent f48a24c18e
commit aa0a63a295

View File

@ -1408,7 +1408,7 @@ func (a *agent) createTailnet(
if rPTYServeErr != nil &&
a.gracefulCtx.Err() == nil &&
!strings.Contains(rPTYServeErr.Error(), "use of closed network connection") {
a.logger.Error(ctx, "error serving reconnecting PTY", slog.Error(err))
a.logger.Error(ctx, "error serving reconnecting PTY", slog.Error(rPTYServeErr))
}
}); err != nil {
return nil, err