socket-util: Avoid using the identical message for different errors