improved reporting for connection errors