Skip to content

Commit

Permalink
CmdlineError should exit with a 1
Browse files Browse the repository at this point in the history
Tools like livemedia-creator need to know that the exit was due to an
error so call sys.exit with a 1.

Related: rhbz#1102318
(cherry picked from commit 7b85910)
  • Loading branch information
bcl committed Aug 28, 2014
1 parent 5aa5ce6 commit a9b4e05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyanaconda/exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def handleException(self, dump_info):
# for a few seconds before exiting the installer
print(cmdline_error_msg)
time.sleep(180)
sys.exit()
sys.exit(1)
else:
print "An unknown error has occured, look at the "\
"/tmp/anaconda-tb* file(s) for more details"
Expand Down

0 comments on commit a9b4e05

Please sign in to comment.