diff options
author | Chris Lumens <clumens@redhat.com> | 2007-02-28 15:21:59 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2007-02-28 15:21:59 +0000 |
commit | ebc6a35d33466c180301497f382bbb626bad2eff (patch) | |
tree | ae7914414873726be3cbfd8616792606655dfd38 /anaconda | |
parent | 47c0d7d572e835d618767f6ad29596b3ab74f67c (diff) | |
download | anaconda-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-x | anaconda | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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 |