tcp(): display socket() errors correctly