chg: handle connect failure before errno gets overridden
This patch moves the error handling logic up so that errno after connect
won't be overridden.
FROM fedora:20
RUN yum install -y gcc
RUN yum install -y python-devel python-docutils
RUN yum install -y make
RUN yum install -y rpm-build
RUN yum install -y gettext
# For creating repo meta data
RUN yum install -y createrepo