fix can't connect message
 with socket
Merge pull request #1553 from dotcloud/1540_fix_error_message

fix can't connect message with socket