summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2007-02-28 15:21:59 +0000
committerChris Lumens <clumens@redhat.com>2007-02-28 15:21:59 +0000
commitebc6a35d33466c180301497f382bbb626bad2eff (patch)
treeae7914414873726be3cbfd8616792606655dfd38 /anaconda
parent47c0d7d572e835d618767f6ad29596b3ab74f67c (diff)
downloadanaconda-ebc6a35d33466c180301497f382bbb626bad2eff.tar.gz
anaconda-ebc6a35d33466c180301497f382bbb626bad2eff.tar.xz
anaconda-ebc6a35d33466c180301497f382bbb626bad2eff.zip
Handle any kickstart exceptions instead of just printing a traceback.
Diffstat (limited to 'anaconda')
-rwxr-xr-xanaconda10
1 files changed, 9 insertions, 1 deletions
diff --git a/anaconda b/anaconda
index 8e1284831..7f5913b75 100755
--- a/anaconda
+++ b/anaconda
@@ -269,7 +269,15 @@ def setVNCFromKickstart(opts):
# kickstart file
handler = VNCHandler()
ksparser = KickstartParser(handler, missingIncludeIsFatal=False)
- ksparser.readKickstart(opts.ksfile)
+
+ # We don't have an intf by now so the best we can do is just print the
+ # exception out.
+ try:
+ ksparser.readKickstart(opts.ksfile)
+ except KickstartError, e:
+ print _("The following error was found while parsing your "
+ "kickstart configuration:\n\n%s") % e
+ sys.exit(1)
if handler.vnc.enabled:
flags.usevnc = 1