mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
fix(agent): log correct error variable in createTailnet (#17283)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user