perror for connect