[SPARK-3089] Make error message in ConnectionManager more meaningful