```javascript
if (obj->config.socket)
  errmsg += obj->config.socket;
else
  errmsg += obj->config.ip;
```

?