diff --git a/service/dap/server.go b/service/dap/server.go index 990f9679ac..50c409f740 100644 --- a/service/dap/server.go +++ b/service/dap/server.go @@ -1051,7 +1051,7 @@ func (s *Session) onLaunchRequest(request *dap.LaunchRequest) { for { n, err := reader.Read(out[:]) if err != nil { - if errors.Is(io.EOF, err) { + if err == io.EOF { return } s.config.log.Errorf("failed read by %s - %v ", category, err)