added error message for when a connection cannot be established