improved the error report when the connect fails
version 2.1.3