From fc7b3f97af31bc791d2ce431ce372efd0bb6bb1b Mon Sep 17 00:00:00 2001 From: Michael McGrath Date: Wed, 12 Mar 2008 10:49:20 -0500 Subject: [PATCH] better error messages --- fas/client/fasClient | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fas/client/fasClient b/fas/client/fasClient index a71bf0b..b76a870 100755 --- a/fas/client/fasClient +++ b/fas/client/fasClient @@ -29,6 +29,7 @@ import codecs import datetime import time +from urllib2 import URLError from fedora.tg.client import BaseClient, AuthError, ServerError from optparse import OptionParser from shutil import move, rmtree, copytree @@ -539,6 +540,9 @@ if __name__ == '__main__': except AuthError, e: print >> sys.stderr, e sys.exit(1) + except URLError, e: + print >> sys.stderr, 'Could not connect to %s - %s' % (FAS_URL, e.reason[1]) + sys.exit(9) fas.mk_tempdir() fas.make_group_db() fas.make_passwd_db()