PUBAPI-975 - make error messages provide a hint on connection error.