better error message in the event of a ConnectionError