more accurate error msg when server connection failed