fix missing error return

This commit is contained in:
Alan Donovan 2021-09-03 12:56:47 -04:00
parent 2c660fa2e5
commit 9e81dc7fde

View file

@ -280,7 +280,7 @@ func forwardPorts(log *output.Logger, codespaceName string, ports []string) erro
group.Go(func() error {
listen, err := net.Listen("tcp", fmt.Sprintf(":%d", pair.local))
if err != nil {
return nil
return err
}
defer listen.Close()
log.Printf("Forwarding ports: remote %d <=> local %d\n", pair.remote, pair.local)