added strerror() call to diagnose connect() error