That code seems fine if there's exactly one element in info. What if there are multiple elements in info? In that case, the various exception messages would all be included, perhaps in a strange arrangement. It might yield something like this:
No socket could be created on 10.0.0.1 -- invalid address on 10.0.0.2 -- invalid address
Perhaps there's a better way to represent the error for multiple info items?